Re: Help a sed noob
- From
- martin f krafft <madduck@madduck.net>
- Date
- Aug 4, 2007, 10:31 UTC
- Message-ID
- <20070804103126.GA28402@lapse.madduck.net>
- In-Reply-To
- <fcaeb9bf0708031622w25ab6e9ev61372169cfc0bd98@mail.gmail.com>
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
-- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck quantum mechanics: the dreams stuff is made of. spamtraps: madduck.bogus@madduck.net