Datasets:
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 | |
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 | |