Skip to content

Instantly share code, notes, and snippets.

@murarisumit
Created May 16, 2018 07:39
Show Gist options
  • Save murarisumit/c4f64f051fa99954c8ede864aa218cab to your computer and use it in GitHub Desktop.
Save murarisumit/c4f64f051fa99954c8ede864aa218cab to your computer and use it in GitHub Desktop.
Change the string1 to string2 in files with given name param #bash #sed #gnu-utils
# change file content in all the given file
find . -type f -name '*file-name*' -exec sed -i 's/str1/str2/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment