Recent Representative Line

A single line of code from a large application that somehow manages to provide an almost endless insight into the pain that its maintainers face each day.

Jun 2011

How Not to Count Lines

by in Representative Line on

 "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"'