Skip to content

Instantly share code, notes, and snippets.

@michaelcarruthers
Created May 16, 2010 23:42
Show Gist options
  • Save michaelcarruthers/403261 to your computer and use it in GitHub Desktop.
Save michaelcarruthers/403261 to your computer and use it in GitHub Desktop.
File.open('/Users/Michael/Desktop/nginx.conf', 'r+').each_line do |line|
line.gsub(/www-data/, 'sam')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment