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. Best, --Glenn -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." ~Benjamin Franklin, Historical Review of Pennsylvania, 1759 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"