Prototype arp-recon
[khome.git] / home / lib / login_functions.sh
index 4ed67ba..894ec7f 100644 (file)
@@ -667,10 +667,10 @@ status() {
 
     echo "${indent_unit}<->"
 
-    printf '%sTCP' "${indent_unit}${indent_unit}"
+    printf '%sTCP\t' "${indent_unit}${indent_unit}"
     sudo -n netstat -tnp \
     | awk 'NR > 2 && $6 == "ESTABLISHED" {print $7}' \
-    | awk -F/ '{print $2}' \
+    | awk '{sub("^[0-9]+/", ""); print}' \
     | sort -u \
     | xargs \
     | column -t
This page took 0.040313 seconds and 4 git commands to generate.