$ find ~/Music/iTunes/iTunes\ Music -name \*.m4a -print | while read i; do AtomicParsley "$i" -t | awk '/apID/{printf "%s\t%s\n", "'"$i"'", $4}' ; done | grep -v "your apple id"
https://gist.github.com/torque/4361328
http://atomicparsley.sourceforge.net/
you need to compile from sources, the binary (version 0.9.0) is outdated