Path: utzoo!attcan!uunet!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: sorting (using sort/sed/awk/whatever) Message-ID: <13492@smoke.BRL.MIL> Date: 6 Aug 90 11:51:43 GMT References: <2943@mtung.ATT.COM> <13485@smoke.BRL.MIL> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 In article montanaro@crdgw1.ge.com (Skip Montanaro) writes: >In article <13485@smoke.BRL.MIL> gwyn@smoke.BRL.MIL (Doug Gwyn) writes: > Surely you jest. You're asking for an artificial intelligence program here. >I don't know. The following short shell script seems to do what Luke wanted >(cluster all the C++ groups together, regardless of their spot in the Usenet >tree). It only orders by the last member of the hierarchy, which is not very helpful (as you can see by running a large .newsrc through this process). For example, foo.c++.bugs would be collected with other *.bugs, not with other c++ groups.