How to use FIND/GREP for files with multiple tags

Sam Varshavchik mrsam at courier-mta.com
Thu Jun 19 00:40:32 UTC 2008


Daniel B. Thurman writes:

> 
> I am trying to use the find command to locate multiple
> files with different tags.  How can I do this?
> 
> I tried something like:
> 
> 1) find . -type f -name '*.wav' -name '*.mp3' -name '*.ogg'
>     But that won't work

find . -type f \( -name '*.wav' -o -name '*.mp3' -o -name '*.ogg' \) -print


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080618/aefcd308/attachment-0001.sig>


More information about the fedora-list mailing list