Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-09-2003, 05:19 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Problem with find


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.
Old 10-09-2003, 05:31 PM   #2
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

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
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
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:

Any suggestions?


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 AM.

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