Created
May 28, 2020 07:29
-
-
Save smallnest/22e24f867dac6dc93f42ddf30af04908 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# human readable /proc/net/netstat | |
# https://sa-chernomor.livejournal.com/9858.html | |
cat /proc/net/netstat | \ | |
awk '(f==0) { i=1; while ( i<=NF) {n[i] = $i; i++ }; f=1; next} \ | |
(f==1){ i=2; while ( i<=NF){ printf "%s = %d\n", n[i], $i; i++}; f=0} ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment