[plug] Find similarly named files in directories (golf match)

Lyndon Maydwell maydwell at gmail.com
Mon Jan 22 00:33:17 WST 2007


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}'



More information about the plug mailing list