Skip to content

Instantly share code, notes, and snippets.

@joekiller
Created July 10, 2015 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joekiller/1aaa548cc2f6cfca4410 to your computer and use it in GitHub Desktop.
Save joekiller/1aaa548cc2f6cfca4410 to your computer and use it in GitHub Desktop.
sed for ip to ec2 address
sed -r 's/.*(^[0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ec2-\1-\2-\3-\4.compute-1.amazonaws.com/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment