Help With Find Syntax
Drew Tomlinson
drew at mykitchentable.net
Fri Oct 14 12:15:46 PDT 2005
On 10/14/2005 12:05 PM Glenn Sieb wrote:
>Drew Tomlinson said the following on 10/14/2005 2:53 PM:
>
>
>
>>I want to recursively search a directory and return files that end in
>>".jpg" or ".gif" but I can't seem to get the find syntax right. My
>>basic command lines are:
>>
>>find /multimedia/Pictures -iname "*.gif" -print
>>
>>OR
>>
>>find /multimedia/Pictures -iname "*.jpg" -print
>>
>>
>
>
>find /multimedia/Pictures \( -iname '*.gif' -or -iname '*.jpg' \) -print
>
>That should do it for you.
>
>
OK, duh. I get it now. Thanks for pointing me in the right direction!
Thanks,
Drew
--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!
http://www.alchemistswarehouse.com
More information about the freebsd-questions
mailing list