Answers for "replace all occurence string with grep file"

C
1

grep find and replace

grep -rl 'oldString' ./ | xargs sed -i 's/oldString/newString/g'
Posted by: Guest on December-14-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 "replace all occurence string with grep file"

Code answers related to "C"

Browse Popular Code Answers by Language