Created
July 10, 2015 18:39
-
-
Save joekiller/1aaa548cc2f6cfca4410 to your computer and use it in GitHub Desktop.
sed for ip to ec2 address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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