Chinese_Audio_Resource / tools /fix_wav_name.sh
hello2mao's picture
update
4374767
raw
history blame contribute delete
198 Bytes
#!/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