How to use FIND/GREP for files with multiple tags

Antonio Olivares olivares14031 at yahoo.com
Thu Jun 19 00:41:30 UTC 2008


--- On Wed, 6/18/08, Daniel B. Thurman <dant at cdkkt.com> wrote:

> From: Daniel B. Thurman <dant at cdkkt.com>
> Subject: How to use FIND/GREP for files with multiple tags
> To: "For users of Fedora-List" <fedora-list at redhat.com>
> Date: Wednesday, June 18, 2008, 5:33 PM
> 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
Try
find /dirwhereyouneed -iname "*.wav" -o -iname "*.ogg" -o -iname "*.mp3" > textfile.txt 

Hope this works!

Regards,

Antonio 
> 
> 2) find . -type f -name '*' | grep -iH
> '{.wav,.mp3,.ogg}'
>     But that won't work.
> 
> Please advise?
> 
> Thanks!
> Dan
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe:
> https://www.redhat.com/mailman/listinfo/fedora-list


      




More information about the fedora-list mailing list