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