Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: OT: How to list all but the last item
- X-seq: zsh-users 10733
- From: Will Maier <willmaier@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: OT: How to list all but the last item
- Date: Mon, 18 Sep 2006 12:02:57 -0500
- In-reply-to: <20060918.183959.74746293.Meino.Cramer@xxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060918.183959.74746293.Meino.Cramer@xxxxxx>
On Mon, Sep 18, 2006 at 06:39:59PM +0200, Meino Christian Cramer wrote:
> Example:
>
> ls -rtlc * | <???what???>
>
> 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@xxxxxxx|http://www.lfod.us/]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author