Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (11 sloc) 0.213 kB
require 'epath'
search, replace = ARGV
Dir["**/*.rb"].each do |file|
c = Path(file).read
rx = Regexp.new(search)
if c =~ rx
File.open(file, "w") do |io|
io << c.gsub(rx, replace)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.