routeros-rest-dump-dns-with.../replace-str.rb

6 lines
104 B
Ruby
Raw Normal View History

2024-02-02 00:55:45 +02:00
#!/usr/bin/env ruby
while line = STDIN.gets
puts "#{line.chomp.gsub("#{ARGV[0]}","#{ARGV[1]}")}"
end