[plug] Find similarly named files in directories

Lyndon Maydwell maydwell at gmail.com
Sat Jan 13 13:52:46 WST 2007


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.



More information about the plug mailing list