bash - How to sort and count occurrence of lines in linux -


this question has answer here:

how can count occurence results of list in linux?

a b b c c d  result: = 1 , b = 2 , c=2 , d=1 

i solve using command sort | uniq -c


Comments