1

Error with Audio Conversion Bash Script

view story
linux-howto

http://www.unix.com – Good evening, I'm currently working on a BASH script to convert audio between file formats and I've come across a snag. At the beginning of the script, I'm having the system check to see if any files with the .m4a extension exist in the directory, and if so, it runs the script. If there are no .m4a extensions, it produces an error. Here is the script: Code: if [ -f *.m4a ]; then     read -p "Enter bitrate value. [128/256/320] > " bitrate     for f in *.m4a; do     avconv -i "$f" -b "$bitrate"k "${f%.m4a}.mp3&quot (HowTos)