Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. ARGV.each do|file_name|
  4. text = File.read(file_name)
  5. text = text.gsub(/replace_me/, "replaced!")
  6. File.open("parsed_" + file_name, "w") { |file| file.puts text }
  7. end
Add Comment
Please, Sign In to add comment