From: "baptiste AuguiƩ" Date: 2007-07-02T03:29:53+09:00 Subject: Re: awk regexp search On 1 Jul 2007, at 19:09, Robert Dober wrote: > > or only the first > > puts File.readlines("/le/beau/fichier"/).grep(....).first.split[3] Perfect! exactly what I wanted (with last instead of first). I just didn't know about this grep command in Ruby, basically. Thanks, baptiste