require "fileutils" def add_favicon(dir) Dir.glob("#{dir}/**/*.html").each do |file| content = File.read(file) content.gsub!(//, "\n") File.write(file, content) end end