Show all ip addresses without argument

This commit is contained in:
Hektor Misplon committed 2021-01-09 14:28:36 +01:00
1 parent 36e404a8ff
commit 365b17ccf8
1 file changed
+1 -2
+1 -2
View File
@@ -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}'