Disclaimer: These instructions are for Ubuntu (or other Linux distro).
Being somewhat of an audiophile, I’ve been encoding my music in lossless FLAC format for a while now - which is great, except when you want to put them on an iPod (which of course, won’t play FLAC files). One option would be to convert these files to Apple Lossless, however, I don’t mind sacrificing some quality to be able to put more music on my iPod. Plus, I probably couldn’t tell the difference while I’m listening to the iPod anyway.
Therefore, I wanted a shell script that I could run that would find out which files I had recently added to my collection and convert them to mp3s (preserving metadata). Then, I could grab those mp3s and put them into gtkpod or iTunes.
I created the shell script below borrowing liberally from other similar scripts I found online.