From owner-cvs-all@FreeBSD.ORG Thu Mar 13 14:50:59 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5DE2106566B; Thu, 13 Mar 2008 14:50:58 +0000 (UTC) (envelope-from jadawin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CBF5C8FC1D; Thu, 13 Mar 2008 14:50:58 +0000 (UTC) (envelope-from jadawin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2DEow7w067765; Thu, 13 Mar 2008 14:50:58 GMT (envelope-from jadawin@repoman.freebsd.org) Received: (from jadawin@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2DEowS9067763; Thu, 13 Mar 2008 14:50:58 GMT (envelope-from jadawin) Message-Id: <200803131450.m2DEowS9067763@repoman.freebsd.org> From: Philippe Audeoud Date: Thu, 13 Mar 2008 14:50:58 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/sysutils Makefile ports/sysutils/sortu Makefile distinfo pkg-descr pkg-plist X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 14:51:00 -0000 jadawin 2008-03-13 14:50:58 UTC FreeBSD ports repository Modified files: sysutils Makefile Added files: sysutils/sortu Makefile distinfo pkg-descr pkg-plist Log: 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) Revision Changes Path 1.987 +1 -0 ports/sysutils/Makefile 1.1 +31 -0 ports/sysutils/sortu/Makefile (new) 1.1 +3 -0 ports/sysutils/sortu/distinfo (new) 1.1 +16 -0 ports/sysutils/sortu/pkg-descr (new) 1.1 +3 -0 ports/sysutils/sortu/pkg-plist (new)