For reasons I can't fathom basename doesn't appear to work with xargs, even though the {} is correct. The command below works for me, but I haven't dealt with the case where the filename has spaces in it.
<strong>bash syntax</strong>
find . -iname "*.mp3" -printf "%p /mnt/sda1/tmp-zik/%f\n" | xargs -n2 -P5 -0 -p lame -q1 -b 32 -B 128
shibblez
Junior Poster in Training
72 posts since Oct 2010
Reputation Points: 15
Solved Threads: 6