quick shellscript
Anybody know shellscripts?
Suppose this converts an mp3 to a wav: mpg123 -w song.wav song.mp3 Can anybody write me a little shellscript to convert all mp3's in the same directory as the shellscript to wav's? I still never learned shellscripts. Probably I should get around to that someday. |
You don't need much scripting for that. I am not familiar with mpg123, but the general idea if you use bash as your shell would be this:
Code:
for file in *.mp3; do lame --decode "$file" "${file/.mp3/.wav}"; done |
Quote:
for file in *.mp3 do lame --decode "$file" "${file%.*}.wav" done |
Quote:
I would start with the "Bash Guide for Beginners" by Machtelt Garrels. Free at http://tldp.org |
All times are GMT -5. The time now is 11:45 AM. |