Trying to do something that should be simple. Using sed to remove the first part of a hostname but not working. I want:

abc.def.com to become def.com

I tried a lot of variations of the following but it's either greedy or does nothing.

sed -e 's/^.*?[.]//'

Thanks in advance.

Reply via email to