Date: Fri, 14 Oct 2005 12:13:02 -0700 From: Drew Tomlinson <drew@mykitchentable.net> To: Glenn Sieb <ges+lists@wingfoot.org>, cswiger@mac.com Cc: questions@freebsd.org Subject: Re: Help With Find Syntax Message-ID: <4350033E.7070703@mykitchentable.net> In-Reply-To: <43500160.8050706@wingfoot.org> References: <434FFEB4.90308@mykitchentable.net> <43500160.8050706@wingfoot.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4350033E.7070703>