Skip to content

Instantly share code, notes, and snippets.

@aavrug
Created May 3, 2016 08:25
Show Gist options
  • Save aavrug/4e36272cbca4f258ba01e8eaf4484f22 to your computer and use it in GitHub Desktop.
Save aavrug/4e36272cbca4f258ba01e8eaf4484f22 to your computer and use it in GitHub Desktop.
Search and replace react id
find . -type f -exec grep -l 'data-reactid' {} \; | while IFS='' read -r line; do perl -pi -e 's/(data-reactid=")[^"]+(")/\1\2/g' "$line"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment