Article View: news.software.readers
Article #11524Re: Appending new unsubscribed groups to .newsrc
From: Martin J. Dellwo
Date: Thu, 22 Sep 1994 14:32
Date: Thu, 22 Sep 1994 14:32
31 lines
2020 bytes
2020 bytes
In article <35qu3e$run@lynx.unm.edu>, Denis McKeon <galway@chtm.eece.unm.edu> wrote: >In <35mto6$951@kodak.rdcs.kodak.com>, >Martin J. Dellwo <mdellwo@Kodak.COM> wrote: >>... just save the .newsrc as .oldnewsrc, then give the >>unix command 'sort -o .oldnewsrc .newsrc'. > >The sort(1) man page here says: > > -o name Uses specified file as output file. This file > may be the same as one of the inputs. > >so I don't think that this suggestion will do what you appear to want. Thanks for pointing this out. I meant to write: sort -o .newsrc .oldnewsrc But actually it looks like you could do 'sort .oldnewsrc > .newsrc', which I had thought didn't work for some reason, hence the use of the '-o' option... The info about sort clobbering long lines is also good, but you could still do the sort directly and compare the byte sizes of .oldnewsrc and .newsrc. If different, you just copy .oldnewsrc back to .newsrc to undo the changes. =M -- Martin J. Dellwo (610) 983-7396 mdellwo@Kodak.COM Biophysics and Computational Chemistry Sterling Winthrop Pharmaceuticals Research Division
Technical Details
Message-ID:
<35s4hq$30d@kodak.rdcs.Kodak.COM>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!bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!psinntp!newsserver.pixel.kodak.com!newsserver.rdcs.Kodak.COM!r06a661References:
<1994Sep19.221746.23872@news.wrc.xerox.com> <35mto6$951@kodak.rdcs.kodak.com> <35qu3e$run@lynx.unm.edu>Show Full Headers
Complete Article Headers
Message-ID: <35s4hq$30d@kodak.rdcs.Kodak.COM> Subject: Re: Appending new unsubscribed groups to .newsrc Date: Thu, 22 Sep 1994 14:32:26 +0000 From: r06a661@bcc26.kodak.com (Martin J. Dellwo) References: <1994Sep19.221746.23872@news.wrc.xerox.com> <35mto6$951@kodak.rdcs.kodak.com> <35qu3e$run@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!bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!psinntp!newsserver.pixel.kodak.com!newsserver.rdcs.Kodak.COM!r06a661 Newsgroups: news.software.readers Organization: Sterling Winthrop Pharmaceuticals Research Division Lines: 31 Distribution: usa Reply-To: mdellwo@Kodak.COM NNTP-Posting-Host: bcc26.kodak.com