From 81f8561d7e199299526e019ff47aa5fdd043a1fd Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 28 Oct 2023 23:46:23 +0400 Subject: [PATCH] ssu4 --- bash.bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash.bashrc b/bash.bashrc index 96b80ec..dca5282 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -198,10 +198,10 @@ alias egrep='egrep $COLOR_OPTIONS' alias transfer_cp='rsync -a --info=progress2 --no-inc-recursive' # shellcheck disable=SC2142 -alias ssu="ss -ntelp | perl -pne 'if(/uid:(\\d+)/){@a=getpwuid(\$1);s/uid:(\\d+)/user:\$a[0]/}'" +alias ssu="ss -ntelp | perl -pne 'if(/uid:(\\d+)/){@a=getpwuid(\$1);s/uid:(\\d+)/user:\$a[0]/}' | awk '{ print \$4 \"\\t\" \$7 \"\\t\" \$6 }'" # shellcheck disable=SC2142 -alias ssu4="ss -ntel4p | perl -pne 'if(/uid:(\\d+)/){@a=getpwuid(\$1);s/uid:(\\d+)/user:\$a[0]/}'" +alias ssu4="ss -ntel4p | perl -pne 'if(/uid:(\\d+)/){@a=getpwuid(\$1);s/uid:(\\d+)/user:\$a[0]/}' | awk '{ print \$4 \"\\t\\t\" \$7 \"\\t\\t\" \$6 }'" # Alias definitions. # You may want to put all your additions into a separate file like