On Mon, 16 Oct 2006 18:44:44 -0700, bill fumerola <[EMAIL PROTECTED]>
wrote:
>On Sun, Oct 15, 2006 at 01:06:31PM -0700, David Alexander wrote:
>> #!/bin/bash
>> BASE="$PWD"
>> find "$PWD" -type d | while read dir ; do
>> cd "$dir"
>> if [ $(ls | grep "\.flac$" | wc -l) -gt 0 ]; then
>> echo "$(date "+%T") Processing: ${PWD#$BASE/}"
>> metaflac --preserve-modtime --add-replay-gain *.flac
>> fi
>> done
>
>this will fail with many filenames.
>
>find . -type f -name \*.flac -print0 | \
> xargs -0 metaflac --preserve-modtime --add-replaygain
No, my script assumes you place your files one album per directory,
which I stated in the text. I have yet to see a CD with enough tracks
to overload the command line.
Mine will also calculate album gain in addition to track gain. Yours
will not.
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss