[plug] Find similarly named files in directories

Bernard Blackham bernard at blackham.com.au
Sat Jan 13 13:33:55 WST 2007


Timothy White wrote:
> On 1/13/07, Bernard Blackham <bernard at blackham.com.au> wrote:
>> Lyndon Maydwell wrote:
>> > find|ruby -e 'h={};STDIN.each{|l|l[/.*\/(.*)/];h[$1]||=[]<<l};p h'
>> > 66 chars
>>
>> I can't get this to work. It lists every file for me.
> 
> For me, it "works". It returns a number of misses,

"works" != works :P
The new one Lyndon just posted works. Thanks Lyndon!

> and the output needs to be sorted.

My perl one isn't sorted either.

Bernard.



More information about the plug mailing list