Create a gist now

Instantly share code, notes, and snippets.

@stondo /
Created Apr 18, 2016

What would you like to do?
ifconfig eth0 | grep "inet addr" | cut -d: -f2 | awk '{print $1}'

stondo commented Apr 18, 2016

bash script to quickly get public IP of your servers.
(Remember to change your interface name to match your setup)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment