Skip to content

Instantly share code, notes, and snippets.

@satour
Created January 17, 2017 06:05
Show Gist options
  • Save satour/89eac280b78e1601dac0e4095d8efbaa to your computer and use it in GitHub Desktop.
Save satour/89eac280b78e1601dac0e4095d8efbaa to your computer and use it in GitHub Desktop.
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