Skip to content

Instantly share code, notes, and snippets.

@JIghtuse
Created May 11, 2015 08:11
Show Gist options
  • Save JIghtuse/76fdfbebf8d771322914 to your computer and use it in GitHub Desktop.
Save JIghtuse/76fdfbebf8d771322914 to your computer and use it in GitHub Desktop.
bash-tricks
#!/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