Add whoamip script to get ip

This commit is contained in:
Hektor Misplon
2020-05-13 17:07:44 +00:00
parent 29eb7e6b1b
commit 3d78f2365d

2
.bin/whoamip Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
ip addr show wlp3s0 | awk '/inet / {gsub(/\/.*/,"",$2); print $2}'