Skip to content

Instantly share code, notes, and snippets.

@shikhirsingh
Last active August 27, 2017 22:42
Show Gist options
  • Select an option

  • Save shikhirsingh/cad03f045c7b42e1ad9458365e62ac5a to your computer and use it in GitHub Desktop.

Select an option

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
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