shell programming problem
Hi
After the user inputs the fully qualified domain name, say test.com.au or download.test.com.au, I would like to extract only the hostname, ie without com.au.
the thing is user might input something as test.com.au or download.test.com.au, but i simply need test and download.test
How do I do this with cut command ( it needs to be done in shell programming)
|