From 3d78f2365d2d8e1306e8bd5d887fa5c757512fcf Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 13 May 2020 17:07:44 +0000 Subject: [PATCH] Add whoamip script to get ip --- .bin/whoamip | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 .bin/whoamip diff --git a/.bin/whoamip b/.bin/whoamip new file mode 100755 index 0000000..c3d839c --- /dev/null +++ b/.bin/whoamip @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +ip addr show wlp3s0 | awk '/inet / {gsub(/\/.*/,"",$2); print $2}'