Article View: news.software.readers
Article #5031Re: .newsrc Cleanup Program Sought
From: Kartik Subbarao
Date: Thu, 22 Jul 1993 16:58
Date: Thu, 22 Jul 1993 16:58
22 lines
1601 bytes
1601 bytes
In article <22g7un$4f4@amhux3.amherst.edu> twpierce@unix.amherst.edu (Tim Pierce) writes: >In article <1993Jul19.234609.2029@scic.intel.com> >sbradley@scic.intel.com (Seth J. Bradley) writes: > >>A while back, someone posted a .newsrc cleanup program - I believe it was >>a Perl script. > >This is the one I use. I think Peter da Silva contributed the regexp >magic. A clever sed hacker could probably use the contents of the >"while" loop to rewrite this in sed, too. ``script''? Why bother with the -,0-9 business? This is what I do: % perl -i -pe 's/\!.*/\!/g' .newsrc (The \ before the ! is for my shell) Occassionaly, I'll also do: % (grep : ~/.newsrc; grep \! ~/.newsrc) > /tmp/new; mv /tmp/new ~/.newsrc Two lines. No muss, no fuss. -Kartik
Technical Details
Message-ID:
<1993Jul22.165841.7810@Princeton.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!gmd.de!newsserver.jvnc.net!siemens!princeton!tex.Princeton.EDU!subbaraoReferences:
<1993Jul19.234609.2029@scic.intel.com> <22g7un$4f4@amhux3.amherst.edu>Show Full Headers
Complete Article Headers
Message-ID: <1993Jul22.165841.7810@Princeton.EDU>
Subject: Re: .newsrc Cleanup Program Sought
Date: Thu, 22 Jul 1993 16:58:41 GMT
From: subbarao@fc.hp.com (Kartik Subbarao)
References: <1993Jul19.234609.2029@scic.intel.com> <22g7un$4f4@amhux3.amherst.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!gmd.de!newsserver.jvnc.net!siemens!princeton!tex.Princeton.EDU!subbarao
Newsgroups: news.software.readers
Originator: news@nimaster
Sender: news@Princeton.EDU (USENET News System)
Nntp-Posting-Host: tex.princeton.edu
Reply-To: subbarao@fc.hp.com
Organization: putchar('I'); for (i = 0; i < 3; i++) putchar('E');
Lines: 22