Using just grep and sed, how do I replace all occurrences of:
a.example.com
with
b.example.com
within a text file under the /home/user/
directory tree recursively finding and replacing all occurrences in all files in sub-directories as well.
Try this:
In case you want to ignore dot directories
Edit: escaped dots in search expression