I have a text file on Linux where the contents are like below:
help.helloworld.com:latest.world.com
dev.helloworld.com:latest.world.com
I want to get the contents before the colon like below:
help.helloworld.com
dev.helloworld.com
How can I do that within the terminal?