I am currently working on a script that asks the user entered a domain name. This domain name is used to fill the hqbase variable for LDAP.
For example, if the user enter “example.com”, i have to cut the domaine name with example on the side and “com” another side.
I found this example:
echo http://example.com/index.php | awk -F/ '{print $3}'
But how to split example from com (any “.”).
You want
.as your delimiter: