just to avoid to change also
- NearlysubdomainA.example.com
- subdomainA.example.comp.other
but still
- subdomainA.example.com.IsIt.good
(maybe not good in the idea behind domain root)
find /home/www/ -type f -exec sed -i 's/\bsubdomainA\.example\.com\b/\1subdomainB.example.com\2/g' {} \;