disk-from-cloud-image/gen-cloud-init/replace.rb

10 lines
143 B
Ruby
Raw Normal View History

2023-11-14 21:52:09 +02:00
#!/usr/bin/env ruby
input = ARGV[0]
output = ARGV[1]
STDOUT.sync = true
while line = STDIN.gets
puts line.gsub("#{input}", "#{output}")
end