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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -