Skip to content

Instantly share code, notes, and snippets.

@acdimalev
Created March 25, 2010 21:39
Show Gist options
  • Save acdimalev/344164 to your computer and use it in GitHub Desktop.
Save acdimalev/344164 to your computer and use it in GitHub Desktop.
#!/bin/sh
ec2din | grep $(host $1 | cut -d' ' -f4) | cut -f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment