Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 393DDCF33 for ; Fri, 27 Jul 2012 17:31:14 +0000 (UTC) Received: (qmail 66877 invoked by uid 500); 27 Jul 2012 17:31:14 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 66817 invoked by uid 500); 27 Jul 2012 17:31:13 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 66809 invoked by uid 99); 27 Jul 2012 17:31:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 17:31:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kkane.list@gmail.com designates 209.85.213.41 as permitted sender) Received: from [209.85.213.41] (HELO mail-yw0-f41.google.com) (209.85.213.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 17:31:07 +0000 Received: by yhr47 with SMTP id 47so4228685yhr.0 for ; Fri, 27 Jul 2012 10:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Wt8r5aKOeOsX0kRSpsFU5My3jlH8cs1OBeg9lP9+/N4=; b=hjL/WvkCEDMUFtB/OdajSsStz/jiRhorn8HloV9yB9x1jgiCaoIot7pn3XeJqa4vKa LNSV9sbJ3yLCzvgsDAkan2qVp6yW7dMlyY5Zqm3ubsHOF2ejsOjiml6F3dQPgVCf37Xy wSomWRfoiPjlQpiZDXc8dT3HQjJmYMlY33wT/J1vW1adH8rmCq3XpegES16h/9Y4eK6D ylChTxVQ2UDuTQpFWXkMCQM4kga2IFaf59lWiGxGeIHT6kGnGGkpxbuiE1kBiaOe2piL 9302TtoXoEeI5fLS2A0+usOrJDNrRBcaKo6YtdCez+Mm5KJBc8yjrrLcyYFJHelyMQTg GOWQ== MIME-Version: 1.0 Received: by 10.50.41.226 with SMTP id i2mr5557370igl.4.1343410246608; Fri, 27 Jul 2012 10:30:46 -0700 (PDT) Received: by 10.231.82.66 with HTTP; Fri, 27 Jul 2012 10:30:46 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Jul 2012 13:30:46 -0400 Message-ID: Subject: Re: egrep usage - 1.3.4 From: Kristopher Kane To: user@accumulo.apache.org Content-Type: multipart/alternative; boundary=bcaec5396b588966e804c5d3120f X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5396b588966e804c5d3120f Content-Type: text/plain; charset=ISO-8859-1 I got it to work, but some interesting things. My RHEL egrep will return for characters that exist after the match automatically For example: Matching for "2009" on "2009000000000" returns in RHEL but does not in the shell. To match the same in the shell I had to add \\d* for the remaining characters. Note the escaping of the meta character. Is that just a Java regex standard? -Kris On Fri, Jul 27, 2012 at 1:20 PM, Kristopher Kane wrote: > The below was sent without qualification. > > I'm using egrep on RHEL 5 with a text file containing dates which is > matching the way I want. Trying to paste into the shell which didn't > return. Still working on it as I made an initial mistake. > > -Kris > > > On Fri, Jul 27, 2012 at 1:02 PM, Kristopher Kane wrote: > >> All, >> >> Trying to use egrep in the shell on v1.3.4 - help says it is a java >> format regex but what does that mean from the shell? egrep "asdf" -c ... >> doesn't match anything whilst grep "asdf" -c ... does. What's required for >> the regex argument? >> >> Thanks, >> >> -Kris >> > > --bcaec5396b588966e804c5d3120f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I got it to work, but some interesting things.=A0

My RHEL egrep wil= l return for characters that exist after the match automatically

Fo= r example:=A0 Matching for "2009"=A0 on "2009000000000"= returns in RHEL but does not in the shell.=A0

To match the same in the shell I had to add \\d* for the remaining char= acters.=A0 Note the escaping of the meta character.

Is that just a = Java regex standard?

-Kris

On Fri= , Jul 27, 2012 at 1:20 PM, Kristopher Kane <kkane.list@gmail.com>= ; wrote:
The below was sent without qualification.=A0=

I'm using egrep on RHEL 5 with a text file containing dates wh= ich is matching the way I want.=A0 Trying to paste into the shell which did= n't return. Still working on it as I made an initial mistake.

-Kris


On Fri, Jul 27, 2012 at 1:02 PM, Kristopher Kane <kkane.list@g= mail.com> wrote:
All,

Trying to use egrep in the shell on v1.3.4 - help says it is a= java format regex but what does that mean from the shell?=A0 egrep "a= sdf" -c ... doesn't match anything whilst grep "asdf" -c= ... does.=A0 What's required for the regex argument?

Thanks,

-Kris


--bcaec5396b588966e804c5d3120f--