From: Jamis Buck Date: 2004-12-06T14:48:22+09:00 Subject: Re: [SOT]Signatures and one liners On 14:37 Mon 06 Dec , Brian Mitchell wrote: > Do you guys have any neat one liners? Can you improve on this one? Mine was discussed previously a few times on this list: ruby -h | ruby -e 'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"' (It should all be on one line.) It's a bit verbose. I remember others found more compact ways of doing similar things. (Can't remember the thread, and I'm too tired to do any serious looking right now anyway...) - Jamis -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis