From 57d94676c472ab7b47aced82662424385ad43f9e Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 9 Jan 2021 14:28:36 +0100 Subject: [PATCH] Show all ip addresses without argument --- .bin/whoamip | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.bin/whoamip b/.bin/whoamip index fb5f4be..45d6586 100755 --- a/.bin/whoamip +++ b/.bin/whoamip @@ -1,3 +1,2 @@ #!/usr/bin/env bash - -ip addr show wlan0 | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' +ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}'