Created
January 17, 2017 06:05
-
-
Save satour/89eac280b78e1601dac0e4095d8efbaa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| filename = ARGV[0].chomp | |
| servicename = ARGV[1].chomp | |
| f = File.open("./"+ filename) | |
| g = File.open("new.txt", "w") | |
| f.each {|line| g << "alias aws-#{servicename}-#{line.chomp}='aws #{servicename} #{line.chomp}'\n"} | |
| f.close | |
| g.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment