% ruby -e 'puts open(ARGV.shift).read.count("\n")' file [download]
-Blake
In reply to Re: Count the number of lines in a file by blakem in thread Count the number of lines in a file by jmcnamara