I have a list of urls like:
hxxp://url.com/subpage.html
hxxp://www.url2.com/index.php
hxxp://subdomain.url3.com/somepage.php
...
How can I use grep to match the domain names only?
All the urls have a / after the domain. And there are a lot of tlds, not sure how many, the list is quite big.