I need to automate the actions that I perform on a batch of files.
I perform a
Code:
command inputfile.oldext outputfile.newext
type of action.
The files are
Code:
track_01.wav
track_02.wav
...
track_n.wav
(But they could be any filetype and I could need to perform any similar command upon them.)
When I issue
Code:
bladeenc track_01.wav track_01.mp3
I get an mp3 file in addition to the original wav.
How do I build a FOR loop that will
Code:
command (trackname).wav (trackname).mp3
for each file and then stop at the last file?
I have been told that the FOR loop plus setting a smart variable for the filename could do that, but the books I have checked describe an older command, FOREACH, no longer available in my distro.
Thank you guys!