5

How I can count occurence results of list in linux?

a
b
b
c
c
d

Result: a = 1 , b = 2 , c=2 , d=1
0

1 Answer 1

14

I solved this by piping to this command

sort | uniq -c 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.