FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 06-19-2008, 12:33 AM
"Daniel B. Thurman"
 
Default How to use FIND/GREP for files with multiple tags

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

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@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 06-19-2008, 12:40 AM
Sam Varshavchik
 
Default How to use FIND/GREP for files with multiple tags

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


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 06-19-2008, 12:41 AM
Antonio Olivares
 
Default How to use FIND/GREP for files with multiple tags

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

> From: Daniel B. Thurman <dant@cdkkt.com>
> Subject: How to use FIND/GREP for files with multiple tags
> To: "For users of Fedora-List" <fedora-list@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@redhat.com
> To unsubscribe:
> https://www.redhat.com/mailman/listinfo/fedora-list




--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 07:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org