Skip to content

Instantly share code, notes, and snippets.

@maximevalette
Created October 24, 2012 20:03
Show Gist options
  • Save maximevalette/3948470 to your computer and use it in GitHub Desktop.
Save maximevalette/3948470 to your computer and use it in GitHub Desktop.
Replace a string in multiple files
find . -type f -name *.php | xargs sed -i.bak 's/foo/bar/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment