Sorting MP3s by ID3 tag
OK so nothing much happened today except calculus which I'm sure you aren't interested in. I have sucessfully done some laundry too :)
With the help of Andrew Godwin my MP3s are now sorted into folders.
First I ran the following shell script to move all MP3s without ID3 tags to a seperate folder
tagless.sh
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/$/"\" \/media\/red\/untagged\/"/ -e s/^/"mv \""/' {} {} \; | while read line; do eval ${line}; done
Then i used amaroK to sort the remaining MP3s and WMAs and oggs into paths like this
W/Weird Al/Poodle Hat/Hardware Store.mp3
Unfortunately some rippers didnt fill in correctly spellt ID3 tags :(


comments