Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/mrip
#!/bin/rc for(i in *.flac){ file=`{echo $"i | sed 's/[^a-zA-Z0-9]/_/g; s/_flac$/\.flac/g'} cp $"i $file && rm $"i && flac -d $file } for(i in *.wav){ lame -b 320 $i && rm $i && mv $i.mp3 mp3/ }