Need help writing a script/batch file
Posted on 2014-03-04
I have a list of files that correspond to files I need to run a script against.
The list looks like this:
etc...all the values are numerical.
These go to a bunch of files in 'pairs' with -in and -out at the end of the 1111,2222,etc.
I want to write a script that will take that list, pass it to a command
sox -m %1-in.wav %1-out.wav %1.wav
So it would run
sox -m 1111-in.wav 1111-out.wav 1111.wav
sox -m 2222-in.wav 2222-out.wav 2222.wav
Until it reaches the end of the list.
I don't know scripting, but I am sure this might be easy to someone who does.