From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24321 Path: main.gmane.org!not-for-mail From: Kai =?iso-8859-1?q?Gro=DFjohann?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Future feature: Gzip of nnfolders? Date: 17 Jul 1999 12:55:07 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87908lj2q0.fsf@comnets.rwth-aachen.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161908 8076 80.91.224.250 (21 Oct 2002 00:58:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:58:28 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA28113 for ; Sat, 17 Jul 1999 07:01:43 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id FAB28028; Sat, 17 Jul 1999 05:56:02 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 17 Jul 1999 05:56:55 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id FAA25920 for ; Sat, 17 Jul 1999 05:56:46 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id GAA28042 for ; Sat, 17 Jul 1999 06:55:40 -0400 (EDT) Original-Received: from petty.cs.uni-dortmund.de (petty.cs.uni-dortmund.de [129.217.20.161]) by waldorf.cs.uni-dortmund.de with SMTP id MAA21776 for ; Sat, 17 Jul 1999 12:55:09 +0200 (MES) Original-Received: (grossjoh@localhost) by petty.cs.uni-dortmund.de id MAA15063; Sat, 17 Jul 1999 12:55:08 +0200 Original-To: ding@gnus.org In-Reply-To: Stainless Steel Rat's message of "16 Jul 1999 23:38:32 -0400" Original-Lines: 32 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.3.11 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24321 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24321 Stainless Steel Rat writes: > * Jonas Steverud on Fri, 16 Jul 1999 > > | BREVFIL="${BREVLISTA}/`ls $BREVLISTA | gawk '{ printf("%03d\n", $1) }' | sort | gawk 'END { print (substr($0, match($0, "[^0][0-9]*")) + 1) }'`" > > Ummm... like I said, 'ls -1 | tail -1'. ,----- | $ mkdir /tmp/foo | $ cd /tmp/foo | $ touch 1 2 3 4 5 6 7 8 9 10 | $ ls -1 | 1 | 10 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | $ `----- Please note that nnmh files are sorted numerically. I think "ls -1 | sort -n | tail -1" will do the trick, though. kai -- Life is hard and then you die.