I have test.txt with this data
a.com
b.com
c.net
c.online
c.unknowntld
ccc.unknown
How i can count all .com .net .online .unknowntld .unknown in test.txt
So i want get like this :
.com : 2
.net : 1
.online : 1
.unknowntld : 1
.unknown : 1
Thanks !