Add whoamip script to get ip

master
Hektor Misplon 2020-05-13 17:07:44 +00:00
parent 29eb7e6b1b
commit 3d78f2365d
1 changed files with 2 additions and 0 deletions

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}'