LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Searching a specific directory for a specific extension? (http://www.linuxquestions.org/questions/linux-newbie-8/searching-a-specific-directory-for-a-specific-extension-352333/)

RoaCh Of DisCor 08-11-2005 07:05 PM

Searching a specific directory for a specific extension?
 
If I were to want to search a directory (and its sub-directories) for files with a certain extension only..how would I do that?

For example..if I wanted to search my /home/ravencrow folder for files with the extension of jpg.

shotwellj 08-11-2005 07:28 PM

There are two good ways to search for things on your computer. The first is slocate and the second is find. Read 'man slocate' and 'man find' for more information.

You could try something like: find /home/ravencrow -iname "*.jpg" -print

Cheers,
Jacob

Tinkster 08-11-2005 07:29 PM

find /home/ravencrow -iname "*.jpg"

RoaCh Of DisCor 08-13-2005 04:28 PM

Thanks :)


All times are GMT -5. The time now is 03:57 AM.