Skip to content

Instantly share code, notes, and snippets.

@nakosung
Last active December 25, 2015 13:49
Show Gist options
  • Save nakosung/6987003 to your computer and use it in GitHub Desktop.
Save nakosung/6987003 to your computer and use it in GitHub Desktop.
export GATEWAY_IP=$(ip addr | awk '/global/ {print $2}' | sed -e "s/\/.*//g")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment