find|ruby -e 'h={};puts STDIN.inject([]){|a,l|l[/.*\/(.*)/];h[$1]?a<<l:h[$1]=a}' this one only shows 'the duplicates', and uses inject, which I'm fond of. But it's still no 70 character demon.