3 ms·
I'm very fond of quickly surveying logfiles with: |cut -d<delimiter> -f<field>|sort|uniq -c|sort -nr It's a bit verbose, but this finds the distinct values
by chronomex 17y ago
I'm very fond of quickly surveying logfiles with:
|cut -d<delimiter> -f<field>|sort|uniq -c|sort -nr
It's a bit verbose, but this finds the distinct values of a field (sort|uniq -c) and sorts them by how often they occur (sort -n), most frequent on top (sort -r).