🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #632

Re: Wanted: SIMPLE .newsrc sorter

#632
From: Gym Z. Quirk
Date: Tue, 24 Sep 1991 21:35
32 lines
1850 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.

I think the following Unix commands should do the trick...

%sed '/git/ r git' .newsrc > others
%sort  others -o others
(I'm not quite sure about the syntax of this one.  Look it up on
man...;-)
%cat others >> git
%mv git .newsrc
(Depending if you have 'mv' aliased to 'mv -i', you may have to
comfirm the removal of the old .newsrc)
%rm others
(Again, if you have 'rm' aliased to 'rm -i', you will have to comfirm
the deletion.)

If I have made any errors, I'm sure someone will point them
out...;-)

>Paul Beker                      Internet: gt4824a@prism.gatech.edu

-- 
Capt. Gym Z. Quirk  (Known to some as Taki Kogoma)  tkogoma@triton.unm.edu
         Veteran of the "Grand sf-lovers fiasco" of July '91-???.
                  Secret Master of rec.arts.startrek
                    -= Insert witty quote here =-
Technical Details
Message-ID: <=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!mcsun!uunet!spool.mu.edu!cs.umn.edu!lynx!triton.unm.edu!tkogoma
References: <36690@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <=2jcwjp@lynx.unm.edu>
Subject: Re: Wanted: SIMPLE .newsrc sorter
Date: Tue, 24 Sep 1991 21:35:29 +0000
From: tkogoma@triton.unm.edu (Gym Z. Quirk)
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!mcsun!uunet!spool.mu.edu!cs.umn.edu!lynx!triton.unm.edu!tkogoma
Newsgroups: news.software.readers
Organization: University of New Mexico, Albuquerque
Lines: 32