public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: kashani <kashani-list@badapple.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT - grep: The -P option is not supported
Date: Wed, 25 Oct 2006 12:04:18 -0700	[thread overview]
Message-ID: <453FB532.4030005@badapple.net> (raw)
In-Reply-To: <1161802282.12162.87.camel@camille.gateway.2wire.net>

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



  reply	other threads:[~2006-10-25 19:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-25 18:51 [gentoo-user] OT - grep: The -P option is not supported Michael Sullivan
2006-10-25 19:04 ` kashani [this message]
2006-10-25 19:04 ` Bo Ørsted Andresen

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=453FB532.4030005@badapple.net \
    --to=kashani-list@badapple.net \
    --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