disk-from-cloud-image/gen-cloud-init/replace.rb
Eliezer Croitoru 2705ea9243 2
2023-11-14 21:52:09 +02:00

10 lines
143 B
Ruby

#!/usr/bin/env ruby
input = ARGV[0]
output = ARGV[1]
STDOUT.sync = true
while line = STDIN.gets
puts line.gsub("#{input}", "#{output}")
end