Skip to content

Instantly share code, notes, and snippets.

@cheuerde
Last active May 16, 2023 20:58
Show Gist options
  • Save cheuerde/44688fada18ef1853553 to your computer and use it in GitHub Desktop.
Save cheuerde/44688fada18ef1853553 to your computer and use it in GitHub Desktop.
Recursively replace string in all files in current folder and subfolders #unix #tools
# take from http://serverfault.com/questions/172806/use-sed-recursively-in-linux
find . -type f -print0 | xargs -0 sed -i 's/foo/bar/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment