Created
May 16, 2018 07:39
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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