PDA

View Full Version : [ubuntu] File search by extension



osx
September 23rd, 2008, 03:46 PM
I'm trying to do something that seems like it would be very easy. I know I have done this in KDE before, but cannot seem to get it work in Ubuntu Gnome.

I want to find files with either the .jpeg or .jpg extensions. In KDE I would just enter *.jpeg;*.jpg in the browser, but this will not work in Gnome. Is there a way to do this in Gnome? I'm using the "Search for Files" feature located in the "Places" menu.

Is this a Gnome issue or an Ubuntu issue? I was doing this in KDE from Knoppix.

Thanks.

osx
September 23rd, 2008, 03:48 PM
By the way, I know how to do this from the command line, I need to know how to do this from the GUI for teaching some newbies.

engtg
September 25th, 2008, 12:03 AM
Try *.jpeg* with no ;

jemate18
September 25th, 2008, 12:28 AM
If in case one is curius how to do it in the command line.....


find /home/xxxxxx -name "*.jpg"

find -> the command to search for files

/home/xxxxxx -> the location you want to search..

-name -> the option passed to command find

"*.jpg" -> the extension of th file you want to search....

osx
September 25th, 2008, 02:51 AM
Try *.jpeg* with no ;

That works, but I want to be able to search by multiple file extensions at once. For example, I want to search for all JPEGs and PNGs at once. Trying something like *.jp*;*.png does not work.

Thanks.

engtg
September 28th, 2008, 11:58 PM
Try this
*[.png.jpeg]*

jemate18
September 29th, 2008, 12:30 AM
try this in the command line.....
find /home/user/folder -name "*[.png\|.jpeg]"


you can change the location of /home/user/folder