Answers for "linux replace string in files recursively"

1

linux replace string in files recursively

find . -type f -name "*.txt" -exec sed -i'' -e 's/foo/bar/g' {} +
Posted by: Guest on April-01-2020
13

linux replace string in all files

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

linux replace string in files recursively

find /home/www \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/subdomainA\.example\.com/subdomainB.example.com/g'
Posted by: Guest on May-18-2021

Code answers related to "linux replace string in files recursively"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language