Last active
January 10, 2024 16:14
-
-
Save josemiguelo/c1d7bea711b8ce7181b2f99cff4fd4c1 to your computer and use it in GitHub Desktop.
find and replace all text ocurrences (ripgrep + sed)
This file contains 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
rg -uu "oldtext" ./ --files-with-matches | xargs sed -i "s/oldtext/newtext/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment