Answers for "linux replace word in all files in directory recursively"

2

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
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 word in all files in directory recursively"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language