# File lib/rye/cmd.rb, line 268 268: def file_modify(filepath, regexp, replace=nil) 269: raise "File not found: #{filepath}" unless file_exists?(filepath) 270: sed :i, :r, "s/#{regexp}/#{replace}/", filepath 271: end