Skip to content

Instantly share code, notes, and snippets.

@ovntatar
Created May 7, 2013 14:34
Show Gist options
  • Save ovntatar/5533023 to your computer and use it in GitHub Desktop.
Save ovntatar/5533023 to your computer and use it in GitHub Desktop.
Replace a string in all the files recursively!
#!/bin/bash
find . -type f | xargs perl -pi -e 's/OLD_VALUES/NEW_VALUE/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment