Skip to main content
Incorporate suggestion to remove cat and pipe
Source Link
rsaxvc
  • 1.8k
  • 13
  • 24

In Bash:

catsort filename | sort | uniq -c | sort -nr

In Bash:

cat filename | sort | uniq -c | sort -nr

In Bash:

sort filename | uniq -c | sort -nr
Sort results in reverse so largest is on top
Source Link
rsaxvc
  • 1.8k
  • 13
  • 24

In Bash:

cat filename | sort | uniq -c | sort -nr

In Bash:

cat filename | sort | uniq -c

In Bash:

cat filename | sort | uniq -c | sort -nr
Source Link
rsaxvc
  • 1.8k
  • 13
  • 24

In Bash:

cat filename | sort | uniq -c