[plug] Find similarly named files in directories

Lyndon Maydwell maydwell at gmail.com
Sat Jan 13 13:00:33 WST 2007


find|ruby -e 'h={};STDIN.each{|l|l[/.*\/(.*)/];h[$1]||=[]<<l};p h'
66 chars
messy output, but technically works (or not?) :P



More information about the plug mailing list