On Aug 5, 2007, at 10:46 AM, Raf Coremans wrote: > I have come up with this one-liner: > > ----------8<---------- > puts File.readlines > ('/usr/share/dict/words').grep(/\A[a-#{((b=ARGV[0].to_i)-1).to_s > (b)}]+\Z/) > ---------->8---------- I used a one-liner too: ruby -sne 'print if $_.downcase =~ /\A[\d\s#{("a".."z").to_a.join[0... ($size.to_i - 10)]}]+\Z/' -- -size=12 /usr/share/dict/words James Edward Gray II