๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #69375

Re: tin: Sorting the group list by name

#69375
From: chris
Date: Tue, 19 Dec 2000 09:17
20 lines
2020 bytes
Urs Jan๏ฟฝen <urs@buil.tin.org> wrote:
> 
> In <91kjdp$1cu$2@taliesin.netcom.net.uk>,
>     chris@areti.co.uk wrote:
>>     sort -o .newsrc .newsrc
> 
> sort -o might trash (depends on the sort (and size)) your inputfile
> if it's the same as your outputfile; better use
> sort < in > out && mv -f out in

The whole point of 'sort -o' is that it doesn't do that isn't it?
The man page here (Solaris) says explicitly ".... This file can be
the same as one of the input files. ".

Even if you do happen to trash the .newsrc tin makes a backup copy
for you so you only lose one session's worth of changes.

-- 
Chris Green (chris@areti.co.uk)
Technical Details
Message-ID: <91n93q$gmk$3@taliesin.netcom.net.uk>
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!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!nntp-out.monmouth.com!newspeer.monmouth.com!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!diablo.netcom.net.uk!netcom.net.uk!pubnews.netcom.net.uk!not-for-mail
References: <91j4ce$3v4om$1@ID-60069.news.dfncis.de> <91kjdp$1cu$2@taliesin.netcom.net.uk> <91lirf$6vq$2@nntp.hamburg.pop.de>

Show Full Headers
Complete Article Headers
Message-ID: <91n93q$gmk$3@taliesin.netcom.net.uk>
Subject: Re: tin: Sorting the group list by name
Date: Tue, 19 Dec 2000 09:17:46 +0000
From: chris@areti.co.uk
References: <91j4ce$3v4om$1@ID-60069.news.dfncis.de> <91kjdp$1cu$2@taliesin.netcom.net.uk> <91lirf$6vq$2@nntp.hamburg.pop.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!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!nntp-out.monmouth.com!newspeer.monmouth.com!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!diablo.netcom.net.uk!netcom.net.uk!pubnews.netcom.net.uk!not-for-mail
Newsgroups: news.software.readers
Organization: (Posted via) GTS Netcom - Public USENET Service http://pubnews.netcom.net.uk
Lines: 19
Sender: Chris Green <chris@halkidiki.areti.com>
NNTP-Posting-Host: halkidiki.areti.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: taliesin.netcom.net.uk 977217466 17108 193.118.189.17 (19 Dec 2000 09:17:46 GMT)
X-Complaints-To: abuse@corp.netcom.net.uk
NNTP-Posting-Date: 19 Dec 2000 09:17:46 GMT
User-Agent: tin/1.5.6-20000803 ("Dust") (UNIX) (Linux/2.2.17 (i686))