From: Meino Christian Cramer <Meino.Cramer@gmx.de>
To: willmaier@ml1.net
Cc: zsh-users@sunsite.dk
Subject: Re: OT: How to list all but the last item
Date: Mon, 18 Sep 2006 19:17:49 +0200 (CEST) [thread overview]
Message-ID: <20060918.191749.41636639.Meino.Cramer@gmx.de> (raw)
In-Reply-To: <20060918170257.GT1551@lass.lfod.us>
From: Will Maier <willmaier@ml1.net>
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 * | <???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@ml1.net|http://www.lfod.us/]
>
...and then light strucks me! :)
Thanks a lot, Will!
Keep hacking!
mcc
next prev parent reply other threads:[~2006-09-18 17:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 16:39 Meino Christian Cramer
2006-09-18 17:02 ` Will Maier
2006-09-18 17:17 ` Meino Christian Cramer [this message]
2006-09-18 17:17 ` Stephane Chazelas
2006-09-18 17:23 ` Meino Christian Cramer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060918.191749.41636639.Meino.Cramer@gmx.de \
--to=meino.cramer@gmx.de \
--cc=willmaier@ml1.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).