in reply to
Count the number of lines in a file
TIMTOWTDI
perl -ne END{print$.} file
[download]
Bonus: Cross-platform portable because no quotes are needed.
Comment on
Re: Count the number of lines in a file
Download
Code
In Section
Cool Uses for Perl