LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-09-2003, 05:19 PM   #1
jowid
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Problem with find


Hello,

I've got a problem with find.

I want to find all files that end on .jpg or .bmp, but i don't know how to form the argument for -iregex. I was trying now for over 2 hours.

Please help me.

Thank you very much.
Jochen
 
Old 10-09-2003, 05:31 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
ok, first you need to update the database for the file locations with the command
<code>updatedb</code>

and it should take a while for it to run, about 5-10 minutes

then, to find files, do locate jpg or .jpg or *.jpg

then it should give u a list

all this is done in terminal/konsole
 
Old 10-09-2003, 05:33 PM   #3
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Rep: Reputation: 30
find / -name '*.jpg' -print

?
 
Old 10-09-2003, 05:37 PM   #4
jowid
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
I need a list of files which either end on .jpg or .bmp.

Something like this:
./picture.jpg
./pic/holiday1.bmp
./pic/holiday2.jpg
[...]

Any suggestions?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem with the #find command jbuckley2004 Linux - General 7 08-26-2005 06:51 PM
bash for + find problem kule Programming 9 02-23-2005 05:48 AM
Find problem draggin Mandriva 2 12-13-2004 10:06 PM
problem with find Mclewson Linux - General 3 11-28-2004 11:24 AM
cant find the problem..pls help ????? rajatgarg Linux - Software 0 07-07-2004 07:46 PM


All times are GMT -5. The time now is 06:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration