Hm, I don't know what's wrong with suggestion jggimy made? Because the name doesn't come before the hash? Then just:
Code:
$ find . -type f -exec md5 {} + | awk '{ print $4, $2 }'
IMHO, path to file is usefull if you got several directories containing mp3's.
Also, using awk you could filter the duplicates, using something like this:
Code:
$ find . -type f -exec md5 {} + | awk -f find.awk
find.awk:
a[$4]++ { if(match($2, /[^\/]*\)/)) {
pattern=substr($2, RSTART, RLENGTH-1);
printf("%s\t%s\n", $4, pattern);
}
}
I'm sorry for not providing more command output or examples, I'm doing this on a Windows machine.