> (and there doesn't seem to be a way to resolve usernames, as `netstat -e` does)
Challenge accepted:
ss -e | grep uid | gawk 'match($0,/uid:([0-9]+)/,u) {printf "%s user:",$0;system("getent passwd "u[1]" | cut -d: -f1");}'
Not your point, I know, but it was fun.You lose three points for using grep and gawk in the same pipeline. :P
Is there a way to make the output not justified to the width of my terminal? The extra whitespace makes it hard to see which rows match up, and also makes it annoying to paste into IM or email.