Skip to content

Instantly share code, notes, and snippets.

@tqyq
Created August 14, 2016 00:30
Show Gist options
  • Save tqyq/a03363c8bd79bdea2aa3e3668f91a613 to your computer and use it in GitHub Desktop.
Save tqyq/a03363c8bd79bdea2aa3e3668f91a613 to your computer and use it in GitHub Desktop.
replace a string in multiple files in linux command line
find ./ -type f -exec sed -i 's/string1/string2/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment