in reply to How do I find the total number of lines in a file?

In an AWK-ish kind of way, straight from the command prompt: perl -lne "END { print $. }" myFilename