I need help , i have a file output.txt
ttl 128
ttl 128
ttl 128
ttl 128
ttl 1
ttl 128
ttl 255
ttl 1
ttl 64
ttl 128
ttl 128
ttl 1
i need count how many times appear the same value in the lines of the file. The final result must be something like this:
ttl 128 - 7 times
ttl 64 - 1 time
ttl 255 - 1 time
ttl 1 - 3 times
I hope you can help me. I'm trying to use grep command.
Thanks a lot