Skip to content

Instantly share code, notes, and snippets.

@betawaffle
Created September 10, 2013 15:30
Show Gist options
  • Save betawaffle/6511135 to your computer and use it in GitHub Desktop.
Save betawaffle/6511135 to your computer and use it in GitHub Desktop.
function knife-ips {
knife search node "name:$1" -aec2.public_ipv4 | grep 'ec2.public_ipv4' | awk '{print $2}'
}
# example: knife-ips "my-node-name-prefix*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment