From 2a51f06664f4cc07bf064be2f5ed7455abe4d7c2 Mon Sep 17 00:00:00 2001 From: Philippe Audeoud Date: Thu, 13 Mar 2008 14:50:57 +0000 Subject: The sortu program is a replacement for the sort and uniq programs. It is common for Unix script writers to want to count how many separate patterns are in a file. For example, if you have a list of addresses, you may want to see how many are from each state. So you cut out the state part, sort these, and then pass them through uniq -c. Sortu does all this for you in a fraction of the time. Sortu uses a hash table and some decent line processing to provide this functionality. For a relatively small number of keys, it can be signifcantly smaller than using sort, because it does not have to keep temporary files. If you are dealing with a large number of unique keys then sortu will run out of memory and stop. Sortu has some basic field and delimiter handling which should do most basic awk or cut features to separate out the field that you are sorting on. WWW: http://256.com/sources/sortu/ PR: ports/121376 Submitted by: Matt Peterson Approved by: tabthorpe (mentor) --- sysutils/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'sysutils/Makefile') diff --git a/sysutils/Makefile b/sysutils/Makefile index 58295efa0058..c53be05ecb4d 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -626,6 +626,7 @@ SUBDIR += snowlog SUBDIR += socket SUBDIR += socklog + SUBDIR += sortu SUBDIR += spassgen SUBDIR += spinner SUBDIR += srmt -- cgit v1.2.3