by jesse

Amarok LogoThis oneliner finds any mp3 without id3v2 tag and automatically adds it to the Amarok playlist. You’ll need the (media-sound/)id3v2 package installed. there are prolly better ways to do this but heck, it works :)

#!/bin/bash
# finds untagged mp3s in the active dir + subdirs
# dedicated to http://geekosphere.org

find . -iname “*.mp3″ -exec sh -c ‘id3v2 -l “$0″ | xargs -0 echo -en $PWD/ | grep “No ID3 tag” | cut -f1 -d”:” | sed -e s/” .\/”// -e s/$/\”/ -e s/^/”dcop amarok playlist addMedia \”"/’ {} {} \; | while read line; do eval ${line}; done

Umm, Wordpress screws the quotes… download here.

Have fun!