From: William James Date: 2005-01-22T09:50:57+09:00 Subject: Re: Getting the version number of the ruby interpreter Nicholas Van Weerdenburg wrote: > > while gets > print if $_ =~ /start/ .. $_ =~ /end/ > end That works. The equivalent Awk program is: /start/,/end/ An Awk program to skip blank lines at the beginning of the file (including lines containing only spaces) and to print the rest of the lines: NF,0