Skip to content

Instantly share code, notes, and snippets.

@wardbekker
Created December 10, 2010 09:42
Show Gist options
  • Save wardbekker/736025 to your computer and use it in GitHub Desktop.
Save wardbekker/736025 to your computer and use it in GitHub Desktop.
search_and_replace.rb search_keyword replacement
#!/usr/bin/env ruby
puts `find -type f -name '*.php' | xargs perl -pi -w -e 's/#{ARGV[0]}/#{ARGV[1]}/g;'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment