[aprssig] sorting aprs data (sort / uniq

Curt, WE7U archer at eskimo.com
Mon Mar 7 11:35:05 EST 2005


On Sat, 5 Mar 2005, Andrew Rich (VK4TEC) wrote:

> I want to sort some aprs data and count traffic.
>
> Can anyone confirm this is the case ?
>
> 1) 'sort' sort the file alphabetically
> 2) 'uniq' returns occurances but they must be next to each other in the
> file
> 3) 'sort data | uniq' sorts the data that uniq needs to single out
> occurances.

"sort -u" instead

I usually use sort -u and then use "wc" in various ways to count
things (chars/words/lines).


> 4) 'sort data | uniq -c' sorts and returns counts of unique occurances
> 5) 'sort data | uniq -c | sort -n' returns unique occurances and counts,
> counts sorted smallest to largest

--
Curt, WE7U.   APRS Client Comparisons: http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"




More information about the aprssig mailing list