>>>>> "MaX" == MaX in the FaX <[EMAIL PROTECTED]> writes:

 
MaX> #!/bin/bash

MaX> for MP3 in `ls *.mp3`; do 
MaX>     
MaX>     mpg123 -b 10000 -s $MP3 | sox -t raw -r 44100 -s -w -c2 - "$MP3.wav"

MaX> done


MaX> Funziona perfettamente fino a che i file sono tipo:

MaX> labellavioletta.mp3

MaX> ma quando incontra nomi tipo:

MaX> la bella violetta.mp3

MaX> ...sono dolori.... :(

MaX> idee?


Provi questo script

#!/bin/bash

for mp3 in *.mp3; do
    mpg123 -b 1000 -s "$mp3" | sox -t raw -r 44100 -s -w -c2 - "${mp3%.*}.wav"
done

 
-- 
Hedi Berriche
mailto:[EMAIL PROTECTED]

This is Linux Country.
In a quiet night,
you can hear Windows
reboot.


Reply via email to