Chinese_Audio_Resource / tools /fix_wav_name.sh
hello2mao's picture
update
4374767
#!/bin/sh
oldsuffix="WAV"
newsuffix="wav"
dir=$(eval pwd)
for file in $(ls $dir | grep .${oldsuffix})
do
name=$(ls ${file} | cut -d. -f1)
mv $file ${name}.${newsuffix}
done