From: Jeff King <peff@peff.net>
To: martin f krafft <madduck@madduck.net>
Cc: Nguyen Thai Ngoc Duy <pclouds@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: Help a sed noob
Date: Sat, 4 Aug 2007 07:50:03 -0400 [thread overview]
Message-ID: <20070804115003.GA9716@coredump.intra.peff.net> (raw)
In-Reply-To: <20070804103126.GA28402@lapse.madduck.net>
On Sat, Aug 04, 2007 at 12:31:26PM +0200, martin f krafft wrote:
> also sprach Nguyen Thai Ngoc Duy <pclouds@gmail.com> [2007.08.04.0122 +0200]:
> > sed -ne '/^URL: */{
> > s///p
> > q
> > }' "$GIT_DIR/remotes/$1"
>
> Looks like it prints the first matching line:
>
> grep '^URL: *' | head -1
No, it prints everything _except_ "URL: *" from the first matching line.
-Peff
next prev parent reply other threads:[~2007-08-04 11:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-03 23:22 Help a sed noob Nguyen Thai Ngoc Duy
2007-08-03 23:38 ` Junio C Hamano
2007-08-04 0:06 ` Nguyen Thai Ngoc Duy
2007-08-03 23:40 ` René Scharfe
2007-08-04 10:31 ` martin f krafft
2007-08-04 11:50 ` Jeff King [this message]
2007-08-04 12:18 ` martin f krafft
2007-08-04 12:26 ` Simon 'corecode' Schubert
2007-08-04 13:56 ` martin f krafft
2007-08-04 14:06 ` David Kastrup
2007-08-04 12:40 ` Jeff King
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=20070804115003.GA9716@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=madduck@madduck.net \
--cc=pclouds@gmail.com \
/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.
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).