How to convert all wav files into mp3 extensions in centos/linux at one go? is there any command?

shell script

#!/bin/bash

SAVEIF=$IFS
IFS=$(echo -en "\n\b")

for file in $(/usr/bin/find /usr/src/wav-folder/ -type f -name "*.wav")
do
  name=${file%%.wav}
  lame -V0 -h -b 160 --vbr-new $name.wav $name.mp3
done


IFS=$SAVEIFS

Comments

Popular posts from this blog

Run MySQL query from Asterisk Dialplan and get values