I bought a bunch of WAV files from an online music store. I wanted to convert them to flac to compress them down a bit and add metadata. WAV files don't contain metadata, so I needed a way to capture the metadata and then feed it into the encoder. I've been using the recfile format a lot, so I decided to use that to represent file metadata in its "key: value" format. After I downloaded the files and album art, I copied (i.e. re-typed) the track metadata from the site into my recfile. This awk program parses the recfile, creates a target location for the file based on the artist and title, runs the encoder, passing the tags, and then adds that location to my cmus library.