% ruby -e 'puts open(ARGV.shift).read.count("\n")' file