A handy script I put together to automatically convert between file formats based on file extension, in an easily extensible manner:
Code:
#!/usr/bin/env bash
#Conversion rules:
# commands["extension_from extension_to"]="convert_command"
# INFILE and OUTFILE in the conversion command are replaced
# with the appropriate filenames
declare -A commands
commands["wav mp3"]="ffmpeg -i INFILE OUTFILE"
...