tomazos has asked for the wisdom of the Perl Monks concerning the following question:
In the man page for grep it says:
-P, --perl-regexp Interpret PATTERN as a Perl regular expression.
When I try this I get:
$ grep -P 'whatever' grep: The -P option is not supported
(Using Ubuntu 6.06 Dapper Drake)
Any ideas on the history of this feature? Why is it "not supported"? How do I get a version of grep that supports it?
When the feature works, what is the extent of greps support for Perl regexps? Does it actually use perl, or is it a reimplemented engine?
-Andrew.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: grep -P
by ambrus (Abbot) on Jun 25, 2006 at 19:58 UTC | |
by tomazos (Deacon) on Jun 25, 2006 at 21:25 UTC | |
Re: grep -P
by Fletch (Bishop) on Jun 25, 2006 at 22:11 UTC | |
Re: grep -P
by sgifford (Prior) on Jun 26, 2006 at 01:46 UTC | |
by tomazos (Deacon) on Jun 26, 2006 at 03:08 UTC |
Back to
Seekers of Perl Wisdom