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.
In reply to Re^4: Count number of lines in a text file
by BrowserUk
in thread Count number of lines in a text file
by Scott7477
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |