sorting (using sort/sed/awk/whatever)

Doug Gwyn gwyn at smoke.BRL.MIL
Mon Aug 6 21:51:43 AEST 1990


In article <MONTNARO.90Aug5102632 at spyder.crd.ge.com> montanaro at crdgw1.ge.com (Skip Montanaro) writes:
>In article <13485 at smoke.BRL.MIL> gwyn at 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.



More information about the Comp.unix.questions mailing list