Sending multiple mp3's to SOX
Hi I am am wanting to send many different mp3's like an array to SOX for example
sox 1.mp3 2.mp3 N.mp3 out.mp3
sox num1.mp3 num2.mp3 numN.mp3 out2.mp3 sox n1.mp3 n2.mp3 nN.mp3 out3.mp3How could I send all those at one time?Or Can I 开发者_如何学Cnot do that?
If you are using bash:
for f in *.mp3; { sox $f out$f; }
For a short list:
sox {1,2,N}.mp3 out.mp3
sox num{1,2,N}.mp3 out2.mp3
sox n{1,2,N}.mp3 out3.mp3
For a range:
sox File{1..42}.mp3 out4.mp3
精彩评论