🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #633

Re: Wanted: SIMPLE .newsrc sorter

#633
From: Paul Beker
Date: Tue, 24 Sep 1991 23:56
35 lines
1951 bytes
In article <=2jcwjp@lynx.unm.edu> tkogoma@triton.unm.edu (Gym Z. Quirk) writes:
>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.
>
>I think the following Unix commands should do the trick...
>
>%sed '/git/ r git' .newsrc > others
>%sort  others -o others

[A few more commands that did not seem to want to work for me...]

Anyways, after giving it a bit more though, I realized that I could do
what I needed with some very simple Unix commands:

grep -i git .newsrc > git
grep -iv git .newsrc > others
sort git -o git
sort others -o others
cat others >> git
mv git .newsrc
rm others

Ah well, maybe someone will get some use out of this... sorry for the wasted
bandwidth!

Paul Beker
-- 
Paul Beker                      Internet: gt4824a@prism.gatech.edu
24838 Georgia Tech Station      uucp: ..!{world}!gatech!prism!gt4824a
Atlanta, GA  30332
Technical Details
Message-ID: <36701@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!qt.cs.utexas.edu!cs.utexas.edu!uunet!europa.asd.contel.com!darwin.sura.net!gatech!prism!gt4824a
References: <36690@hydra.gatech.EDU> <=2jcwjp@lynx.unm.edu>

Show Full Headers
Complete Article Headers
Message-ID: <36701@hydra.gatech.EDU>
Subject: Re: Wanted: SIMPLE .newsrc sorter
Date: Tue, 24 Sep 1991 23:56:40 +0000
From: gt4824a@prism.gatech.EDU (Paul Beker)
References: <36690@hydra.gatech.EDU> <=2jcwjp@lynx.unm.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!qt.cs.utexas.edu!cs.utexas.edu!uunet!europa.asd.contel.com!darwin.sura.net!gatech!prism!gt4824a
Newsgroups: news.software.readers
Organization: Georgia Institute of Technology
Lines: 35