Created
March 16, 2022 03:22
-
-
Save wwwins/3ad0d1c8cfa3eaebf5a72b719f22e560 to your computer and use it in GitHub Desktop.
Find and replace a string in multiple files
This file contains 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
# Replace "4bk.aaa.com.tw" -> "bk.aaa.com.tw" in *.js|htm|html|css files | |
find www -type f \( -iname "*.js" -or -iname "*.htm" -or -iname "*.html" -or -iname "*.css" \) -exec sed -i '' 's/4bk.aaa.com.tw/bk.aaa.com.tw/g' {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment