Article View: news.software.nntp
Article #65718Re: rnews example
From: Jeffrey M. Vinocur
Date: Thu, 12 Jun 2003 22:19
Date: Thu, 12 Jun 2003 22:19
29 lines
2128 bytes
2128 bytes
In article <65ef3d34.0306121325.3bce297b@posting.google.com>,
cemo <destek@cpsoft.biz> wrote:
>
>1) How will I replace all the "Win Style" LFs with "Unix Style" in
>thousands of articles ?
I'm somewhat surprised that you had a problem with that, but
whatever. Anyway, your system may come with a program called
dos2unix which is useful for this purpose.
>2) I did my home-work. So let's talk about "many articles at once" :)
Hmm, ok, let's see. The standard unix trick would be something
like
/bin/ls -1 > /tmp/filelist
cat /tmp/filelist | xargs -n1 $pathbin/rnews
assuming that there are no special characters or whitespace in
your file names. There are lots of other ways (for example,
rnews also supports a batch format, but that may be more trouble
than it's worth to create; some of the other INN utils may work
better), but I'd have to look those up. You can check if it
works by editing /tmp/filelist to only have a few test files
instead of all of them.
Technical Details
Message-ID:
<bcau9l$pas$1@puck.litech.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.litech.org!not-for-mailReferences:
<65ef3d34.0306100550.66b6f0fa@posting.google.com> <65ef3d34.0306101225.5270a23@posting.google.com> <bc9ji1$48e$1@puck.litech.org> <65ef3d34.0306121325.3bce297b@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <bcau9l$pas$1@puck.litech.org> Subject: Re: rnews example Date: Thu, 12 Jun 2003 22:19:33 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <65ef3d34.0306100550.66b6f0fa@posting.google.com> <65ef3d34.0306101225.5270a23@posting.google.com> <bc9ji1$48e$1@puck.litech.org> <65ef3d34.0306121325.3bce297b@posting.google.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 28 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1055456373 25948 66.218.0.75 (12 Jun 2003 22:19:33 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Thu, 12 Jun 2003 22:19:33 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)