Run recursive sed for all files in directory

find ./ -type f -print0 | xargs -0 sed -i 's/subdomainA\.example\.com/subdomainB.example.com/g'

Leave a Reply

Your email address will not be published. Required fields are marked *