From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GcoA8-0004me-Do for garchives@archives.gentoo.org; Wed, 25 Oct 2006 19:11:40 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9PJ7kKf022913; Wed, 25 Oct 2006 19:07:46 GMT Received: from popmail.jettissystems.com (popmail.jettissystems.com [38.118.146.212]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9PJ3Qwm021793 for ; Wed, 25 Oct 2006 19:03:27 GMT Received: from [10.23.0.120] (unknown [74.93.11.97]) by popmail.jettissystems.com (Postfix) with ESMTP id 00EBC56D486 for ; Wed, 25 Oct 2006 12:03:25 -0700 (PDT) Message-ID: <453FB532.4030005@badapple.net> Date: Wed, 25 Oct 2006 12:04:18 -0700 From: kashani User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT - grep: The -P option is not supported References: <1161802282.12162.87.camel@camille.gateway.2wire.net> In-Reply-To: <1161802282.12162.87.camel@camille.gateway.2wire.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: bb79121e-d57c-44f1-9ed0-55794967e03f X-Archives-Hash: bbe7b20fe5a21c012c52b6131436a679 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 +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