Answers for "grep and replace in multiple files"

2

How to replace a string in multiple files in linux command line

cd /path/to/your/folder
sed -i 's/foo/bar/g' *
Posted by: Guest on September-02-2020
0

replace match in various grep match

find /path/to/files -type f -exec sed -i 's/oldstring/new string/g' {} ;
Posted by: Guest on March-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language