Last active
October 30, 2021 16:41
-
-
Save okb1100/442abb7bde07ce5fe5b70650d0570a43 to your computer and use it in GitHub Desktop.
#linux-stuff [Show local ip of host]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
IFACE="wlp3s0" | |
echo " $(ip -br addr show dev $IFACE | awk '{print $3}' | sed 's/\/[0-9].//') " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment