I'm quite new to this and wonder if anyone can help me, i'm trying to have sox convert all the *.wav files in a specific directory into *.cdr files and keep the names so that i can write them to an audio cd. i have been trying
[brynn@brynn untitled folder]$ for i in *.wav; do sox "$i" 'basename "$i"'; done
only i need the basename bit to omit the original extension and replace it with .cdr
this seems to work in converting the mp3's to wav's which i got off a wiki but i cant seem to get it to work with sox
[brynn@brynn untitled folder]$ for i in *.mp3; do mpg321 -w "`basename "$i" .mp3`.wav" "$i"; done
any help will be greatly appreciated
