linux replace string in all files
sed -i 's/old-text/new-text/g' input.txt
linux replace string in all files
sed -i 's/old-text/new-text/g' input.txt
How to replace a string in multiple files in linux command line
cd /path/to/your/folder
sed -i 's/foo/bar/g' *
Linux command line search and replace string in all files
String Find and replace (folders/sub folders)
> grep -rl "old string" . | xargs sed -i 's/old string/new string/g'
URL Find and replace (folders/sub folders)
> grep -rl "www\.google\.com" . | xargs sed -i 's/www\.google\.com/www\.yahoo\.com/g'
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us