I've got a File full of URLs. Each line has one URL. I just want to keep the protocol and domain part.
Example:
https://example0.com/example.php?id=example0
https://example1.com/example.php?id=example1
https://example2.com/example.php?id=example2
Should be formatted to:
https://example0.com/
https://example1.com/
https://example2.com/
I'm using Linux Terminal, so Bash would be the best i think. I already heard of sed
but i don't know how to use it or how to use expressions.