in reply to Count the number of lines in a file

Tempting the wrath of He who must not be named, I'll post a heretical one-liner I wrote lastnight that does basically the same thing....
% ruby -e 'puts open(ARGV.shift).read.count("\n")' file

-Blake