Last active
August 27, 2017 22:42
-
-
Save shikhirsingh/cad03f045c7b42e1ad9458365e62ac5a to your computer and use it in GitHub Desktop.
Changes FROM_STRING string recursively inside all specified file types to TO_STRING
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep --include \*.cpp --include \*.hpp --include \*.xml --include \*.json --include \*.js -rli 'FROM_STRING' * | xargs sed -i '' 's/FROM_STRING/TO_STRING/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment