Answers for "grep regex on file and replace"

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 "C"

Browse Popular Code Answers by Language