[Gllug] A command to repeat a function for each file
Nick Hill
nick at nickhill.co.uk
Thu Feb 14 20:42:45 UTC 2002
I am looking for a command to repeatedly run sox for each file matching a wildcard.
Eg
if function is foobar and input file is %1 and output file name is %2
foobar 'sox %1 -r 11025 %2 resample' *.wav *11025.wav
so that each file.wav gets re-sampled and written as file11025.wav
Any ideas?
It could possibly be written as a shell script but this would be wasteful if a command exists to do something similar already.
Regards
Nick.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list