[aprssig] sorting aprs data (sort / uniq
archer at eskimo.com
Mon Mar 7 10:35:05 CST 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
> 3) 'sort data | uniq' sorts the data that uniq needs to single out
"sort -u" instead
I usually use sort -u and then use "wc" in various ways to count
> 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