10 lines
143 B
Ruby
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 |