How to get domain name from URL in bash shell script