# ss -plunt | grep -E "(LISTEN|UNCONN)" | awk '{gsub(/[\[\]]/, "", $5); n=split($5,a,/:/); printf "%s:%s %s\n", a[1],a[n],$NF}' | sort -V 실제 명령줄까지# ss -plunt | grep -E "(LISTEN|UNCONN)" | awk '{gsub(/[\[\]]/, "", $5); n=split($5,a,/:/); match($NF,/pid=([0-9]+)/,arr); printf "\"%s\",\"%s\",\n", a[1]":"a[n], arr[1]}' | sort -V | while IFS=$'\t' read -r line; do ip_port=$(echo "$line" | cut -d',' -..