Linux console count number of occurences using sort and uniq

The quick answer is:

Here is a more indepth version. We have a text file called warframe.txt and want to count duplicate occurences of each line.
​warframes.txt

We have to create an output stream, sort this stream and use uniq with parameter c to each occurence.

 

count unique occurences in file on command line - animated gif

1 One person thinks it's helpful 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *