From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22812 invoked from network); 18 Sep 2006 17:03:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Sep 2006 17:03:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97815 invoked from network); 18 Sep 2006 17:03:12 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 17:03:12 -0000 Received: (qmail 8680 invoked by alias); 18 Sep 2006 17:03:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10733 Received: (qmail 8667 invoked from network); 18 Sep 2006 17:03:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Sep 2006 17:03:02 -0000 Received: (qmail 96599 invoked from network); 18 Sep 2006 17:03:02 -0000 Received: from out1.smtp.messagingengine.com (66.111.4.25) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 17:03:00 -0000 Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 7A285DA7705 for ; Mon, 18 Sep 2006 13:02:58 -0400 (EDT) Received: from heartbeat1.internal ([10.202.2.160]) by frontend3.internal (MEProxy); Mon, 18 Sep 2006 13:03:00 -0400 X-Sasl-enc: 0szk4mIanfxk0fWOdURNJtQSMiIZX2tCxRxrUQ7l6O7R 1158598979 Received: from localhost (lass.hep.wisc.edu [128.104.28.249]) by mail.messagingengine.com (Postfix) with ESMTP id 448C264AC for ; Mon, 18 Sep 2006 13:02:59 -0400 (EDT) Date: Mon, 18 Sep 2006 12:02:57 -0500 From: Will Maier To: zsh-users@sunsite.dk Subject: Re: OT: How to list all but the last item Message-ID: <20060918170257.GT1551@lass.lfod.us> Mail-Followup-To: zsh-users@sunsite.dk References: <20060918.183959.74746293.Meino.Cramer@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060918.183959.74746293.Meino.Cramer@gmx.de> User-Agent: Mutt/1.5.12-2006-07-14 On Mon, Sep 18, 2006 at 06:39:59PM +0200, Meino Christian Cramer wrote: > Example: > > ls -rtlc * | > > would return every item in a directory exept the newest one. > > Is there any way to accomplish with something fitting in on > a commandline??? sed(1). eg: /etc % jot 5 1 2 3 4 5 /etc % jot 5 | sed -e '$d' 1 2 3 4 -- [Will Maier]-----------------[willmaier@ml1.net|http://www.lfod.us/]