Article View: news.software.readers
Article #640Re: Wanted: SIMPLE .newsrc sorter
From: Walter Moore
Date: Wed, 25 Sep 1991 13:04
Date: Wed, 25 Sep 1991 13:04
23 lines
1441 bytes
1441 bytes
In article <36690@hydra.gatech.EDU> gt4824a@prism.gatech.EDU (Paul Beker) writes:
>I am looking for some simple way to sort my .newsrc, without having to
>change readers or learn all about GNU, etc. The only thing I really
>want to do is to sort it in the following way:
>
> 1) All git.* (local) groups first, alphabetized.
> 2) All remaining groups in my .newsrc, alphabetized.
>
>Thanks!
>Paul Beker
I would suggest the following on a Unix system:
% sed -n '/^git\./p' .newsrc | sort > git.grps
% sed '/^git\./d' .newsrc | sort > other.grps
% mv git.grps .newsrc
% cat other.grps >> .newsrc
Hope this helps,
--
TTYL & TANSTAAFL ---------------- Walter Moore
Internet: zwbm07@hou.amoco.com
Technical Details
Message-ID:
<1991Sep25.130417.21593@hou.amoco.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!paperboy.micro.umn.edu!cs.umn.edu!uc!apctrc!voyager!zwbm07References:
<36690@hydra.gatech.EDU>Show Full Headers
Complete Article Headers
Message-ID: <1991Sep25.130417.21593@hou.amoco.com> Subject: Re: Wanted: SIMPLE .newsrc sorter Date: Wed, 25 Sep 1991 13:04:17 +0000 From: zwbm07@hou.amoco.com (Walter Moore) References: <36690@hydra.gatech.EDU> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!paperboy.micro.umn.edu!cs.umn.edu!uc!apctrc!voyager!zwbm07 Newsgroups: news.software.readers Sender: news@hou.amoco.com Organization: Amoco Lines: 23