bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: Egrep Issue


From: Sreelakshmi Aechiraju
Subject: Fw: Egrep Issue
Date: Wed, 6 Jun 2012 11:28:01 +0530

Hi Team


We tried to use egrep to filter content of a file.

We tried the same on TEST and PROD system and they generate different
output. TEST results are desired. Could you please let me know any
corrections or issues.
Content of the MID_M.txt file is identical on both systems which are at
same OS level using GNU grep.



Linux g03zciwas020 2.6.16.60-0.81.2-default #1 SMP Thu Jun 30 09:20:04 UTC
2011 s390x s390x s390x GNU/Linux



Please check the output for PROD and TEST environments below.

   PROD


address@hidden:/tmp/ariw/ariwscripts/ds/datasets/ARIWScripts>
cat MID_M.txt
001 EA MONTHEND CFRAP.E2EA.ABMTTRIG 3,3 0,0 1,2
001 EB MONTHEND CFRAP.E2EB.BBMTTRIG 3,3 0,0 1,2
001 ED MONTHEND CFRAP.E2ED.DBMTTRIG 3,3 0,0 1,2
001 EE MONTHEND CFRAP.E2EE.EBMTTRIG 3,3 0,0 1,2
001 EF MONTHEND CFRAP.E2EF.FBMTTRIG 3,3 0,0 1,2
002 AS MONTHEND MONTHEND.APSOUTH.COMPLETE 1,3 4,4 8,2
002 AS BH_MONTHEND BH_MONTHEND.APSOUTH.COMPLETE 1,3 4,4 8,2
address@hidden:/tmp/ariw/ariwscripts/ds/datasets/ARIWScripts>
cat MID_M.txt | egrep "002(.)*\bMONTHEND"
002 AS MONTHEND MONTHEND.APSOUTH.COMPLETE 1,3 4,4 8,2
002 AS BH_MONTHEND BH_MONTHEND.APSOUTH.COMPLETE 1,3 4,4 8,2

   TEST


address@hidden:/tmp/ariw/ariwscripts/ds/UAT/datasets/ARIWScripts> cat
MID_M.txt
001 EA MONTHEND CFRAP.E2EA.ABMTTRIG 3,3 0,0 1,2
001 EB MONTHEND CFRAP.E2EB.BBMTTRIG 3,3 0,0 1,2
001 ED MONTHEND CFRAP.E2ED.DBMTTRIG 3,3 0,0 1,2
001 EE MONTHEND CFRAP.E2EE.EBMTTRIG 3,3 0,0 1,2
001 EF MONTHEND CFRAP.E2EF.FBMTTRIG 3,3 0,0 1,2
002 AS MONTHEND MONTHEND.APSOUTH.COMPLETE 1,3 4,4 8,2
002 AS BH_MONTHEND BH_MONTHEND.APSOUTH.COMPLETE 1,3 4,4 8,2
address@hidden:/tmp/ariw/ariwscripts/ds/UAT/datasets/ARIWScripts>  cat
MID_M.txt | egrep "002(.)*\bMONTHEND"
002 AS MONTHEND MONTHEND.APSOUTH.COMPLETE 1,3 4,4 8,2
address@hidden:/tmp/ariw/ariwscripts/ds/UAT/datasets/ARIWScripts>


Above test result is desired. One entry should be returned

Please let me know if any information is needed further .



Thanks & Regards
Sreelakshmi Aechiraju
IBM India Pvt Ltd
Mindspace Hyderabad
Landline: 040-66954187
Email:address@hidden



From:   Paul Eggert <address@hidden>
To:     Sreelakshmi Aechiraju/India/address@hidden
Date:   06/05/2012 09:32 PM
Subject:        Re: Egrep Issue



On 06/05/2012 06:15 AM, Sreelakshmi Aechiraju wrote:
> (Embedded image moved to file: pic32203.gif)

I'd try resending that as text; images tend to cause
email like that to be marked as spam (and I can't
easily read it).






reply via email to

[Prev in Thread] Current Thread [Next in Thread]