[clug] Obsessing over IPv6 - watching home usage

Mike Carden mike.carden at gmail.com
Sun May 8 01:08:05 MDT 2011


On Sun, May 8, 2011 at 5:04 PM, Paul Wayper <paulway at mabula.net> wrote:

> ifconfig tun | perl -ne 'while (m{([RT]X (packets|bytes)):(\d+)}g) { $a{$1} =
> $3; } END { foreach my $k (sort keys %a) { print "$k => $a{$k}\n"; } }'
>
> Perl is a bit heavyweight here, but what the hell it was close to hand :-)


I love a syntax that looks like line noise.

-- 
MC


More information about the linux mailing list