I'm having a huge brainfart on this, I know it's easy.
In bash I receive a variable string in the form of:
Where the "example.com" will change to any FQDN over time.
I need to extract that FQDN and make it a bash variable.
????????????????????
DOMAIN=`sed -e...................
D.E.R. Management - IT Project Management Consulting
In bash I receive a variable string in the form of:
Code:
domain_example.com.dom
Where the "example.com" will change to any FQDN over time.
I need to extract that FQDN and make it a bash variable.
????????????????????
DOMAIN=`sed -e...................
D.E.R. Management - IT Project Management Consulting