Put the command sequence in a shell script, and have find execute the shell script. For instance, put this in a file named re_rip.bash:
Code:
#!/bin/bash
# Only do something if we are given an argument on the command line
if [ ! "${1}x" = "x" ] ; then
mpg123 -s ${1} | normalize min=98 | lame -x -v -V 2 -b 32 -B 320 - temp.mp3
mv temp.mp3 ${1}
fi
Save the file, make it executable (
chmod u+x re_rip.bash), and then run the find command:
find dir options -exec /path/to/re_rip.bash {} \;
Whenever automating moving/deleting files, always always always copy a subset of the data to a test location and give the script a trial run. If it works on your test, then cut it loose on your regular stuff.