summaryrefslogtreecommitdiff
path: root/misc/wmip
diff options
context:
space:
mode:
Diffstat (limited to 'misc/wmip')
-rwxr-xr-xmisc/wmip2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/wmip b/misc/wmip
new file mode 100755
index 0000000..56fe23d
--- /dev/null
+++ b/misc/wmip
@@ -0,0 +1,2 @@
+#!/bin/sh
+ip a | awk '!/ (lo|dummy|virbr)/ && /inet / { sub(/\/.*/, "", $2); printf "%-12s %s\n", $NF":", $2 }'