in reply to Re: Count number of lines?
in thread Count number of lines?
I believe Abigail scored the ultimate Perl one-liner to count lines in a file, with (modified to fit the current context)...
perl -lpe '}{$_="$. users to date"' users.datA little more readable is ...
perl -lne 'END { print "$. users to date" }' users.dat--k.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Count number of lines?
by converter (Priest) on Jun 20, 2001 at 08:56 UTC |