How Not to Count Lines
by in Representative Line on 2011-06-29"Not long ago, I was poking around one of our production web servers and noticed the following curiosity in a shell script," writes Marshall G.
/bin/cat /var/run/netstat_r.lst | /usr/bin/wc | /usr/bin/cut -b -8 |perl -e 'my $r=<>; $r =~ s/^\s+//; print "$r"'