Find command - multiple file types
Hey all,
I've racked my head against the wall long enough, so I'll throw this over to someone wiser. I've been using the find command to create a playlist: Code:
find /directory/Archived/Music -name "*.*" -print > playlist.txt What I'd really like to do is to find all the music files - mp3, ogg, flac, etc., and generate the playlist.txt file. I've tried various combinations and permutations: Code:
find /directory/Archived/Music -name "*.mp3 *.flac *.ogg" -print > playlist.txt Help, please. cheers, |
Here's an example from my backup script.
Code:
find /mnt/backup -type f \( -name '*.gz' -o -name '*.log' \) \ |
well, i've tried some things, even using your exact phrase, and i get:
Code:
find: paths must precede expression |
I was just showing the method of finding more than one file type. :)
This would be a more complete example of what you are doing. Code:
(cd /home/mp3 ; find . -type f \( -iname "*.mp3" -o \ |
thanx homey....you're my 'hero for a day'
cheers, |
All times are GMT -5. The time now is 10:16 AM. |