Re: Eine ganze Festplatte mit mp3-Dateien...
David Haller <[email protected]>
| Newsgroups | gmane.linux.suse.multimedia.german |
|---|---|
| Message-ID | <[email protected]> |
Hallo,
Am Sam, 06 Feb 2010, Al Bogner schrieb:
[..]
>for INP in `find "$DIR" -type f -regex ".*\.mp3$"` ; do
>...
>lame ... "$INP" "$NEWFILENAME"
>...
Das zerbröselt's. for .. in `` oder $() ist _IMMER_ schlecht.
find "$DIR" -type f -iname '*.mp3' -exec /bin/bash -c 'for file; do
lame ... "$file" "${file//.mp3}_128.mp3"
done' find-bash '{}' '+'
HTH,
-dnh
--
"Microsoft admitted its Vista operating system was a 'less good
product' in what IT experts have described as the most ambitious
understatement since the captain of the Titanic reported some
slightly damp tablecloths." http://www.thedailymash.co.uk/