Hate to resurrect a dead thread, but I came across a few nice ruby variables and... reduced my ruby version down to 62 characters: find|ruby -e'h={};$<.map{|l|l[/.*\/(.*)/];h[$1]?$><<l:h[$1]=1}'