Skip to content

Instantly share code, notes, and snippets.

@dylanhthomas
Forked from DanielleSucher/one_liners
Created June 18, 2013 16:29
Show Gist options
  • Save dylanhthomas/5806932 to your computer and use it in GitHub Desktop.
Save dylanhthomas/5806932 to your computer and use it in GitHub Desktop.
Replace all instances of old_string with new_string recursively within the current directory and its sub-directories:
grep -rl old_string * | xargs 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