9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] egrep in Plan9
@ 2009-10-23  3:40 Dimitry Golubovsky
  2009-10-23  3:57 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Dimitry Golubovsky @ 2009-10-23  3:40 UTC (permalink / raw)
  To: 9fans

Hi,

Does there exist a  Plan9 version of egrep or grep that understands -E
option like GNU grep does?

Thanks.

--
Dimitry Golubovsky

Anywhere on the Web



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] egrep in Plan9
  2009-10-23  3:40 [9fans] egrep in Plan9 Dimitry Golubovsky
@ 2009-10-23  3:57 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2009-10-23  3:57 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-23  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-23  3:40 [9fans] egrep in Plan9 Dimitry Golubovsky
2009-10-23  3:57 ` Russ Cox

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).