summaryrefslogtreecommitdiff
path: root/bar/wmip
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-10-20 18:01:36 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-10-20 18:01:36 -0500
commitc2c48e2fb05aaffdfccd621b41aaa0e9559f8740 (patch)
tree066d7e5cb77b05d2d89131e5c2fd7c1241027c83 /bar/wmip
parent9b67bd7971bf6c1d44969011cd4e059fecf5e59b (diff)
downloadscripts-c2c48e2fb05aaffdfccd621b41aaa0e9559f8740.tar.xz
scripts-c2c48e2fb05aaffdfccd621b41aaa0e9559f8740.zip
whats my ip script
Diffstat (limited to 'bar/wmip')
-rwxr-xr-xbar/wmip2
1 files changed, 2 insertions, 0 deletions
diff --git a/bar/wmip b/bar/wmip
new file mode 100755
index 0000000..63e5676
--- /dev/null
+++ b/bar/wmip
@@ -0,0 +1,2 @@
+#!/bin/sh
+ip addr | awk '!/ lo/ && /inet / { sub(/\/.*/, "", $2); print $2 }'