LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2006, 02:27 AM   #1
ExoZagNoid
Member
 
Registered: Jun 2004
Location: Gibbons, Alberta, Canada
Distribution: Fedora Core
Posts: 51

Rep: Reputation: 15
Finding multiple files with different extensions


Using CLI 'find' or Konqueror's 'find file' tool, how would I go about finding multiple files with different extensions.

For example, how would I find all the files in "/home" (and ALL subfolders), with .jpg AND .BMP extensions at the same time? I don't want to do a separate search for each. Such a simple thing can be so confusing....

Thanks,
Exo
 
Old 01-18-2006, 03:33 AM   #2
gmh04
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian
Posts: 15

Rep: Reputation: 0
You could use the command line with:

$ find . -name "*.jpg" -o -name "*.BMP"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove files excluding those with specified extensions Melsync Linux - General 17 08-14-2015 05:16 AM
files with extensions ;type=i santoshraju Linux - General 2 12-11-2004 10:31 AM
finding files in C++ poeta_boy Programming 2 07-11-2004 01:25 AM
Help I need help tarring multiple files in multiple directories VisionZ Linux - Newbie 28 03-25-2004 05:25 PM
file extensions ? types ? executable files ?? abbasakhtar Linux - Newbie 13 10-06-2003 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration