Created
May 3, 2016 08:25
-
-
Save aavrug/4e36272cbca4f258ba01e8eaf4484f22 to your computer and use it in GitHub Desktop.
Search and replace react id
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
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