find question
Hi all,
what do I have to type in, when I want to list all mp3 - ogg - wma - and wav-files with their FULL PATH (/mnt/music/...) by using the command "find" [admin@server /]# find . /mnt/music -name "*.mp3 *.ogg *.wma *.wav" doesn't work. Any help? coder22 |
try this ...
Code:
find /mnt/music -type f \( -name '*.mp3' -o -name '*.ogg' \ |
@homey: Thanks - worked great
But I've got one more question: By using find in combination with regex, the command for listing all ogg-files is: Code:
find . -regex '.*\.ogg' it doesn't work, and I tried a lot, but couldn't get it work. This doesn't work: Code:
find . -regex '.*\.ogg|.*\.wma' Thanks in advance, coder22 |
Hi,
You need to escape the 'or' sign (pipe). Ie: find . -regex '.*\.ogg\|.*\.wma' Hope this helps. |
All times are GMT -5. The time now is 08:25 AM. |