(You'll probably need to backslash the linefeeds if not on bash or zsh.)netstat -an | perl -lne' $h{$1}++ if /((?:TIME|FIN|EST|SYN|CLO)\S*)/; END { print "$a = $b" while ($a, $b) = each %h } '
Makeshifts last the longest.
In reply to Re: netstate (improved)
by Aristotle
in thread netstate
by thayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |