Got a lot of untagged and dirty MP3s? First sort them according to ARTIST and ALBUM into a 2-level directory structure under directory mp3:

Directory tree

mp3
 +John Doe
  +Debut
   +Track1.mp3
   +Track2.mp3
   +Track3.mp3
  +OtherAlbum
   +Track1.mp3
   +Track2.mp3
 +Jane Dae
etc.
Then do the magic script:

Code: tag_mp3s.sh

The script takes the names of the level-1 directory and level-2 directory for tagging.

Attention! Your old tags will be overwritten (actually only the ARTIST and ALBUM parts).