Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!casbah.acns.nwu.edu!accuvax.nwu.edu!delta.eecs.nwu.edu!jacobson From: jacobson@delta.eecs.nwu.edu (Dan Jacobson) Newsgroups: comp.sources.d Subject: Re: newsclean - tool to cleanup .newsrc, Part01/01 unofficial patch Message-ID: <16561@accuvax.nwu.edu> Date: 31 Jan 91 04:23:04 GMT References: <2645@sdl990.sdl.hitachi.co.jp> <2737@sdl990.sdl.hitachi.co.jp> Sender: news@accuvax.nwu.edu Organization: AT&T-BL, Naperville IL, USA Lines: 28 In article Dan_Jacobson@ATT.COM writes: :>>>>> On 30 Jan 91 01:10:13 GMT, takagi@sdl990.sdl.hitachi.co.jp (Shigeyuki Takagi) said: : :S> ! system("sort -f -u tmp.newsrc -o tmp.newsrc"); : :I think you'll find that this traditional UNIX tool (sort) usually :doesn't deal with "long lines" correctly. I made a .newsrc sorter :based on egrep, sort, etc. long lines disappeared quietly sometimes. :I was too lazy to get the GNU "no arbitrary limits" versions of these :traditional tools though. : :[Today, however, I am a successful and relaxed GNUS newsreader, and use :Ashwin Ram's sorting stuff, soon to be in the next GNUS release, I :think. [GNUS address: :info-gnus-english-request@tut.cis.ohio-state.edu, newsgroup: :gnu.emacs.gnus]] : :S> char Entry[1024]; : :I didn't look at your code, but this looks frighteningly hardwiredly :limited ("1024"). [And I forgot to add:] Uh, What...?: You are just sorting the number ranges and not the order of the newsgroups themselves? Oops, that's what I get for opening my mouth without looking at the code or anything. Dan_Jacobson@ATT.COM