[Gllug] A command to repeat a function for each file
David Damerell
damerell at chiark.greenend.org.uk
Fri Feb 15 11:03:17 UTC 2002
On Thursday, 14 Feb 2002, Nick Hill wrote:
>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
xargs using the --replace-string argument, I think. Consider find
-print0 and the corresponding xargs argument if your files have
strange characters in.
--
David Damerell <damerell at chiark.greenend.org.uk> flcl?
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list