Created
May 11, 2015 08:11
-
-
Save JIghtuse/76fdfbebf8d771322914 to your computer and use it in GitHub Desktop.
bash-tricks
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 | |
# get all ipv4 addresses of existing connections | |
ip -4 -oneline a | awk '{ print $2 ": " $4 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment