Skip to main content
added 1 character in body
Source Link

You can use awk to solve this as below,

for file in `find /home/www -type f` do awk '{gsub(/subdomainA.example.com/,"subdomainB.example.com"); print $0;}' $file > ./tempFile && mv ./tempFile $file; done 

hope this will help you  !!!

You can use awk to solve this as below,

for file in `find /home/www -type f` do awk '{gsub(/subdomainA.example.com/,"subdomainB.example.com"); print $0;}' $file > ./tempFile && mv ./tempFile $file; done 

hope this will help you!!!

You can use awk to solve this as below,

for file in `find /home/www -type f` do awk '{gsub(/subdomainA.example.com/,"subdomainB.example.com"); print $0;}' $file > ./tempFile && mv ./tempFile $file; done 

hope this will help you  !!!

Source Link

You can use awk to solve this as below,

for file in `find /home/www -type f` do awk '{gsub(/subdomainA.example.com/,"subdomainB.example.com"); print $0;}' $file > ./tempFile && mv ./tempFile $file; done 

hope this will help you!!!