public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] OT - grep: The -P option is not supported
@ 2006-10-25 18:51 Michael Sullivan
  2006-10-25 19:04 ` kashani
  2006-10-25 19:04 ` Bo Ørsted Andresen
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Sullivan @ 2006-10-25 18:51 UTC (permalink / raw
  To: gentoo-user

I have a script I wrote a couple of weeks ago.  Part of the script scans
email files and returns IP addresses found in them.  I did this with
this command:

cat * |  grep -Po "\[\d+\.\d+\.\d+\.\d+\]"

It worked fine right up until this afternoon.  Now I get this:

michael@bullet ~/spam $ cat * | grep -Po "\[\d+\.\d+\.\d+\.\d+\]"
grep: The -P option is not supported
michael@bullet ~/spam $

AFAIK, the only thing I've done between when it worked this morning and
when it didn't this afternoon is started an emerge -ND world on bullet.
Has anyone experienced this?  Should it go away on its own after the
emerge finishes, or is this functionality that has been phased out?
What can I do about it otherwise?

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] OT - grep: The -P option is not supported
  2006-10-25 18:51 [gentoo-user] OT - grep: The -P option is not supported Michael Sullivan
@ 2006-10-25 19:04 ` kashani
  2006-10-25 19:04 ` Bo Ørsted Andresen
  1 sibling, 0 replies; 3+ messages in thread
From: kashani @ 2006-10-25 19:04 UTC (permalink / raw
  To: gentoo-user

Michael Sullivan wrote:
> I have a script I wrote a couple of weeks ago.  Part of the script scans
> email files and returns IP addresses found in them.  I did this with
> this command:
> 
> cat * |  grep -Po "\[\d+\.\d+\.\d+\.\d+\]"
> 
> It worked fine right up until this afternoon.  Now I get this:
> 
> michael@bullet ~/spam $ cat * | grep -Po "\[\d+\.\d+\.\d+\.\d+\]"
> grep: The -P option is not supported
> michael@bullet ~/spam $

more /usr/portage/sys-apps/grep/ChangeLog

*grep-2.5.1a-r1 (01 Aug 2006)

   01 Aug 2006; Mike Frysinger <vapier@gentoo.org> +grep-2.5.1a-r1.ebuild:
   Add back in pcre #141609.

I suspect that's the issue, that your new grep is missing pcre, though 
it's hard to tell since you didn't mention which version of grep you 
have installed. Additionally pcre became a use flag in 2.5.1a-r1

kashani
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] OT - grep: The -P option is not supported
  2006-10-25 18:51 [gentoo-user] OT - grep: The -P option is not supported Michael Sullivan
  2006-10-25 19:04 ` kashani
@ 2006-10-25 19:04 ` Bo Ørsted Andresen
  1 sibling, 0 replies; 3+ messages in thread
From: Bo Ørsted Andresen @ 2006-10-25 19:04 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

On Wednesday 25 October 2006 20:51, Michael Sullivan wrote:
[SNIP]
> cat * |  grep -Po "\[\d+\.\d+\.\d+\.\d+\]"

;)

http://www.ruhr.de/home/smallo/award.html

> It worked fine right up until this afternoon.  Now I get this:
>
> michael@bullet ~/spam $ cat * | grep -Po "\[\d+\.\d+\.\d+\.\d+\]"
> grep: The -P option is not supported
> michael@bullet ~/spam $
[SNIP]

My guess would be that you need to enable a pcre use flag for sys-apps/grep.

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-10-25 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-25 18:51 [gentoo-user] OT - grep: The -P option is not supported Michael Sullivan
2006-10-25 19:04 ` kashani
2006-10-25 19:04 ` Bo Ørsted Andresen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox