Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.questions Subject: Re: sorting (using sort/sed/awk/whatever) Message-ID: <3190:Aug1914:13:3790@kramden.acf.nyu.edu> Date: 19 Aug 90 14:13:37 GMT References: <13485@smoke.BRL.MIL> <13492@smoke.BRL.MIL> Sender: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 12 In article <13492@smoke.BRL.MIL> gwyn@smoke.BRL.MIL (Doug Gwyn) writes: > 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 [ sorts by last part of newsgroup name ] > foo.c++.bugs would be collected with other *.bugs, not with other c++ groups. Hmmm. Perhaps remove the tail from *.misc, then collect foo.bar.* under foo.bar whenever the latter exists. Does this do the trick? ---Dan