Last active
September 22, 2020 11:44
-
-
Save gcjyzdd/e498ed7245c3adbaaad0bbddee399326 to your computer and use it in GitHub Desktop.
Search and replace symbols using ag and sed on windows. The following example replace lightSPDs with lightSPDs_buffer
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
| ag -l lightSPDs > output.txt | |
| for /f %%a in (output.txt) do sed -i -e "s/lightSPDs/lightSPDs_buffer/g" %%a | |
| del output.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment