Article View: news.software.readers
Article #70981Re: Sorting .newsrc in Unix shell accoutn
From: Happl Oberlin
Date: Mon, 22 Jan 2001 23:45
Date: Mon, 22 Jan 2001 23:45
20 lines
1844 bytes
1844 bytes
In article <94ff7m$fre$1@redenix.uni-muenster.de>, Dirk Nimmich <nimmich@uni-muenster.de> wrote: >>> (sort < .newsrc > newsrc.$$$ ; mv newsrc.$$$ .newsrc) >> Why not "sort .newsrc -o .newsrc"? >Because this -- as well as the example above -- can trash your >newsrc if something goes wrong. Use > >sort < .newsrc > .newsrc.$$$ && mv .newsrc.$$$ .newsrc > >instead to be on the safe side. If "sort -o" is not safe, then "mv" is not safe, too. And has to be replaced by "copy ... && rm ...". And why you use "$$$"? I would use just "$$" for the PID. Greetings from Switzerland -- Gr�sse aus der Schweiz Happl
Technical Details
Message-ID:
<happl-6AF2AD.00454923012001@news.bluewin.ch>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!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!wn3feed!worldnet.att.net!164.128.36.58!newsfeed-zh.ip-plus.net!news.ip-plus.net!news.bluewin.ch!happlReferences:
<3a6791fd$0$1517$53a6afc1@news.erinet.com> <slrn96h2n6.7c6.Znospam+noZs_0101@hpb13799Z.Zboi.hpZ.com.invalid> <happl-181346.19520321012001@news.bluewin.ch> <94ff7m$fre$1@redenix.uni-muenster.de>Show Full Headers
Complete Article Headers
Message-ID: <happl-6AF2AD.00454923012001@news.bluewin.ch> Subject: Re: Sorting .newsrc in Unix shell accoutn Date: Tue, 23 Jan 2001 00:45:49 +0100 From: Happl Oberlin <happl@mail.com> References: <3a6791fd$0$1517$53a6afc1@news.erinet.com> <slrn96h2n6.7c6.Znospam+noZs_0101@hpb13799Z.Zboi.hpZ.com.invalid> <happl-181346.19520321012001@news.bluewin.ch> <94ff7m$fre$1@redenix.uni-muenster.de> 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!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!wn3feed!worldnet.att.net!164.128.36.58!newsfeed-zh.ip-plus.net!news.ip-plus.net!news.bluewin.ch!happl Newsgroups: news.software.readers Organization: --- Lines: 19 NNTP-Posting-Host: bw1-59pub130.bluewin.ch X-Trace: bw107zhb.bluewin.ch 980207151 26488 195.186.59.130 (22 Jan 2001 23:45:51 GMT) X-Complaints-To: newsmaster@bluewin.ch NNTP-Posting-Date: 22 Jan 2001 23:45:51 GMT User-Agent: MT-NewsWatcher/3.0 (PPC)