I want to write a simple script that does the following:

* Reads metadata from an audio file (WAV, FLAC, MP3 and AIFF)
* Returns an error message if the bitrate is below a thershold
* Renames the file to be in a specific format eg artist-title-year-etc
* Moves it to another folder

I have very limited shell scripting experience, but I wanted to know if anyone could point me in the right direction, particularly for reading the metadata. If someone can propose an alternative way to writing a shell script that would also be useful!