extract domain name from url

Posted by Ben Smith on Stack Overflow See other posts from Stack Overflow or by Ben Smith
Published on 2010-03-23T02:34:10Z Indexed on 2010/03/23 2:41 UTC
Read the original article Hit count: 441

Filed under:
|
|

How do I extract the domain name from a url using bash? like: http://example.com/ to example.com must work for any tld, not just .com

© Stack Overflow or respective owner

Related posts about bash

Related posts about url