Tagclean

Tagclean is a utility to make it easy to maintain a clean and structured collection of Ogg and MP3 files. Give it a filename and it will go through great effort to extract useful information from ID3v1, ID3v2, Vorbis comments and the filename, clean it up and present it for you to create nice tags. When the tagging is done it will create a unix-friendly filename to save as. Easy editing is courtesy of libterm-gnu-readline.

How it works

$ cd ogg
$ tagclean *.ogg

This will start the tagclean script in single mode. Your shell will expand the * to all the Ogg files in the directory and feed them to tagclean. For each file it will try to get some useful information from the filename, Vorbis comment, ID3v2 and ID3v1. Then, if it’s a filename, clean it up.