From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] egrep in Plan9
Date: Thu, 22 Oct 2009 20:57:52 -0700 [thread overview]
Message-ID: <dd6fe68a0910222057x1a75f759i9a53306265b5a2c9@mail.gmail.com> (raw)
In-Reply-To: <bcba51a0910222040h309d50b9q686d04ab230d14e9@mail.gmail.com>
On Thu, Oct 22, 2009 at 8:40 PM, Dimitry Golubovsky
<golubovsky@gmail.com> wrote:
> Does there exist a Plan9 version of egrep or grep that understands -E
> option like GNU grep does?
In Plan 9, all tools accept the same regular expression syntax,
and that syntax is the one used by the Unix egrep.
#!/bin/rc
if(~ $1 -E) shift
exec grep $*
Russ
prev parent reply other threads:[~2009-10-23 3:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 3:40 Dimitry Golubovsky
2009-10-23 3:57 ` Russ Cox [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=dd6fe68a0910222057x1a75f759i9a53306265b5a2c9@mail.gmail.com \
--to=rsc@swtch.com \
--cc=9fans@9fans.net \
/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).