LinuxQuestions.org

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

RoaCh Of DisCor 08-11-2005 06: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 06: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 06:29 PM

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

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

Thanks :)


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