🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #636

Re: Wanted: SIMPLE .newsrc sorter

#636
From: Dave Meyer
Date: Wed, 25 Sep 1991 00:38
17 lines
1560 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.

mv .newsrc old.newsrc
(grep ^git old.newsrc | sort ; grep -v ^git old.newsrc | sort) > .newsrc

is the most succinct way of doing this (that I know).  It's kind of
sloppy, but it will certainly do the job.
-- 
David M. Meyer                                   | dmm0t@virginia.edu
Department of Mechanical & Aerospace Engineering | (804) 924-7926
University of Virginia                           |
Technical Details
Message-ID: <1991Sep25.003812.15046@murdoch.acc.Virginia.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!math.fu-berlin.de!ira.uka.de!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!wupost!uwm.edu!linac!att!rutgers!mcnc!uvaarpa!murdoch!holmes.acc.Virginia.EDU!dmm0t
References: <36690@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <1991Sep25.003812.15046@murdoch.acc.Virginia.EDU>
Subject: Re: Wanted: SIMPLE .newsrc sorter
Date: Wed, 25 Sep 1991 00:38:12 +0000
From: dmm0t@holmes.acc.Virginia.EDU (Dave Meyer)
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!math.fu-berlin.de!ira.uka.de!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!wupost!uwm.edu!linac!att!rutgers!mcnc!uvaarpa!murdoch!holmes.acc.Virginia.EDU!dmm0t
Newsgroups: news.software.readers
Sender: usenet@murdoch.acc.Virginia.EDU
Organization: University of Virginia
Lines: 17