From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11693 invoked from network); 18 Sep 2006 17:18:14 -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=AWL,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:18:14 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 26384 invoked from network); 18 Sep 2006 17:18:04 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 17:18:04 -0000 Received: (qmail 11047 invoked by alias); 18 Sep 2006 17:17:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10734 Received: (qmail 11032 invoked from network); 18 Sep 2006 17:17:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Sep 2006 17:17:56 -0000 Received: (qmail 25265 invoked from network); 18 Sep 2006 17:17:56 -0000 Received: from p54852b3b.dip0.t-ipconnect.de (HELO localhost) (84.133.43.59) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 17:17:53 -0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1GPMkg-00010X-0Q; Mon, 18 Sep 2006 19:17:50 +0200 Date: Mon, 18 Sep 2006 19:17:49 +0200 (CEST) Message-Id: <20060918.191749.41636639.Meino.Cramer@gmx.de> To: willmaier@ml1.net Cc: zsh-users@sunsite.dk Subject: Re: OT: How to list all but the last item From: Meino Christian Cramer In-Reply-To: <20060918170257.GT1551@lass.lfod.us> References: <20060918.183959.74746293.Meino.Cramer@gmx.de> <20060918170257.GT1551@lass.lfod.us> X-Mailer: Mew version 5.1 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Will Maier Subject: Re: OT: How to list all but the last item Date: Mon, 18 Sep 2006 12:02:57 -0500 > 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/] > ...and then light strucks me! :) Thanks a lot, Will! Keep hacking! mcc