- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
awk 'END{print NR}' <filename>
RTFM
Admin
No need to count lines, awk already does it:
awk 'END {print NR}' <filename>
Admin
Astonishingly, amongst all this to-ing and fro-ing regarding C-Octothorpe, and relative idiocy with respect to obviousness of the other guys intended irony...
No-one has seemed to notice that a one-man circle jerk doesn't really work.
Why Octothorpe didn't notice that himself and point out that it is quite obviously superior to be strumming solo, god only knows.
Also, platform fanboys really ought to have stopped being those by now.
Admin
Unbelievable that still nobody mentioned the simplest solution
sed -n $= /var/run/netstat_r.lst
Admin
Pretty much looks like line noise.
Admin
perl -lne 'END{print $.}' /var/run/netstat_r.lst