From: Etaoin Shrdlu <shrdlu@unlimitedmail.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Grep question
Date: Fri, 6 Mar 2009 10:33:58 +0100 [thread overview]
Message-ID: <200903061033.59237.shrdlu@unlimitedmail.org> (raw)
In-Reply-To: <5602B0BD6D59AE4791BE83104940118D7B1B3EB4@excprdmbxw002.optus.com.au>
On Friday 6 March 2009, 00:01, Adam Carter wrote:
> > > awk '/^foo/,/^bar/' a
> > >
> > > does the same :)
> >
> > Nice...
>
> Thanks for all these answers. Interesingly when I moved the sed script
> (sed "s/;/\\n/g") from Linux to Solaris it failed as Solaris sed
> doesn't like putting the newline character as the "translated to" bit.
> Installing GNU sed on the Solaris box sorted that out.
Or for the future, with seds that do not like \n in the rhs, you can do
sed 's/;/\
/g'
prev parent reply other threads:[~2009-03-06 9:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 2:01 [gentoo-user] Grep question Adam Carter
2009-03-02 2:04 ` Mike Kazantsev
2009-03-02 10:01 ` Steven Lembark
2009-03-02 14:06 ` [gentoo-user] " James
2009-03-03 2:10 ` Harry Putnam
2009-03-03 9:52 ` Etaoin Shrdlu
2009-03-05 16:54 ` Harry Putnam
2009-03-05 23:01 ` Adam Carter
2009-03-06 9:33 ` Etaoin Shrdlu [this message]
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=200903061033.59237.shrdlu@unlimitedmail.org \
--to=shrdlu@unlimitedmail.org \
--cc=gentoo-user@lists.gentoo.org \
/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