From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24333 Path: main.gmane.org!not-for-mail From: Ted Rathkopf Newsgroups: gmane.emacs.gnus.general Subject: Re: Future feature: Gzip of nnfolders? Date: 17 Jul 1999 10:47:02 -0400 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=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035161918 8135 80.91.224.250 (21 Oct 2002 00:58:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:58:38 +0000 (UTC) Cc: ding@gnus.org 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 KAA00327 for ; Sat, 17 Jul 1999 10:48:02 -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 JAB28518; Sat, 17 Jul 1999 09:47:49 -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 09:48:22 -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 JAA00243 for ; Sat, 17 Jul 1999 09:48:12 -0500 (CDT) Original-Received: from ns.ametro.net (root@ns.ametro.net [205.216.82.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id KAA00303 for ; Sat, 17 Jul 1999 10:47:07 -0400 (EDT) Original-Received: from s1.com (rathkopf.ametro.net [209.102.187.119]) by ns.ametro.net (8.8.8/AMCIS) with SMTP id JAA30148 for ; Sat, 17 Jul 1999 09:47:04 -0500 Original-Received: (qmail 30237 invoked from network); 17 Jul 1999 14:47:03 -0000 Original-Received: from tick.thecity.home (rathkopf@192.168.192.2) by speak.thecity.home with SMTP; 17 Jul 1999 14:47:03 -0000 Original-To: "Kai Großjohann" In-Reply-To: Kai Großjohann's message of "17 Jul 1999 12:55:07 +0200" User-Agent: Gnus/5.07009 (Pterodactyl Gnus v0.90) XEmacs/21.1 (20 Minutes to Nikko) Original-Lines: 36 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24333 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24333 Kai Großjohann writes: > 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. Or "ls -1tr | tail -1" -- Ted Rathkopf