Answers for "command replace all text in current folder linux"

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
19

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 "command replace all text in current folder linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language