Skip to content

Instantly share code, notes, and snippets.

@josemiguelo
Last active January 10, 2024 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josemiguelo/c1d7bea711b8ce7181b2f99cff4fd4c1 to your computer and use it in GitHub Desktop.
Save josemiguelo/c1d7bea711b8ce7181b2f99cff4fd4c1 to your computer and use it in GitHub Desktop.
find and replace all text ocurrences (ripgrep + sed)
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