Skip to content

Instantly share code, notes, and snippets.

@asperduti
Created November 1, 2021 19:31
Show Gist options
  • Save asperduti/588890af04577cb7255606bcfc04d073 to your computer and use it in GitHub Desktop.
Save asperduti/588890af04577cb7255606bcfc04d073 to your computer and use it in GitHub Desktop.
Recursively replace a string with sed
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/old_string/new_string/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment