🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #22891

Re: shell script to clean up .newsrc files?

#22891
From: Jan B. Schipmolder
Date: Sat, 15 Jun 1996 00:00
24 lines
1185 bytes
In article <4pqoua$3j7@due.unit.no>, oerjan@lie.matstat.unit.no (Orjan
Johansen) wrote:

] In article <4ppmh7$rr1@panix3.panix.com>, Tom Betz <tbetz@panix.com> wrote:

] >A long time ago, in a Usenet far away, somebody wrote and posted
] >a shell script that went through .newsrc files and cleaned them up,

] What about:
] 
] #!/bin/sh
] cd
] mv .newsrc .newsrc~
] sed -e 's/\([:!] [0-9]*\).*[,-]/\1-/' <.newsrc~ >.newsrc

That worked for me in csh if I replaced ! by \!.
I guess in sh you don't need to do that.

-- 
Jan B. Schipmolder
schip@netcom.com

Technical Details
Message-ID: <schip-1406962226070001@10.0.2.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <4ppmh7$rr1@panix3.panix.com> <4pqoua$3j7@due.unit.no>

Show Full Headers
Complete Article Headers
Message-ID: <schip-1406962226070001@10.0.2.1>
Subject: Re: shell script to clean up .newsrc files?
Date: Sat, 15 Jun 1996 00:00:00 +0000
From: schip@netcom.com (Jan B. Schipmolder)
References: <4ppmh7$rr1@panix3.panix.com> <4pqoua$3j7@due.unit.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 160283527
Sender: schip@netcom2.netcom.com
Organization: GAMP
Newsgroups: news.software.readers