in reply to Re^3: Count number of lines in a text file
in thread Count number of lines in a text file

But this works:

So does this--but efficiently enough tha you can use it on huge files:)

c:\test>perl -ne"}{print$." junk.out 20000001

It actually beats wc -l on my system.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP PCW It is as I've been saying!(Audio until 20090817)