topfew

Finds the field values which appear most often in a stream of records

brewmacoslinux
Try with needOr install directly
Source

About

Finds the field values which appear most often in a stream of records

Commands

topfew

Examples

Show the 10 most common values in a field from a CSV file$ cat data.csv | topfew -f 2
Find top 5 most frequent IP addresses in access logs$ cat access.log | topfew -n 5 -f 1
Display most common values from space-separated data with custom separator$ topfew -f 3 -s ',' data.txt