Answers for "linux find and replace string in all files"

1

find and replace in all files in directory centos

grep -rl 'apples' /dir_to_search_under | xargs sed -i 's/apples/oranges/g'
Posted by: Guest on May-19-2020
14

linux replace string in all files

sed -i 's/old-text/new-text/g' input.txt
Posted by: Guest on March-31-2020

Code answers related to "linux find and replace string in all files"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language