Skip to content

Instantly share code, notes, and snippets.

@SubZane
Created December 22, 2016 23:25
Show Gist options
  • Save SubZane/884c5fbebfda7a9e793692b94151e002 to your computer and use it in GitHub Desktop.
Save SubZane/884c5fbebfda7a9e793692b94151e002 to your computer and use it in GitHub Desktop.
Replace string in file
find . -name '*.txt' -print0 | xargs -0 sed -i "" "s/this/that/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment