Skip to content

Instantly share code, notes, and snippets.

@ChristianGaertner
Created August 17, 2013 09:44
Show Gist options
  • Select an option

  • Save ChristianGaertner/6256143 to your computer and use it in GitHub Desktop.

Select an option

Save ChristianGaertner/6256143 to your computer and use it in GitHub Desktop.
Replace String in all files of the current directory
grep -rl 'OLDSTRING' ./ | xargs sed -i 's/OLDSTRING/NEWSTRING/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment