The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-17-2008
thepurple thepurple is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 134
below commands I run. But not getting the proper output. However, it takes 3 minutes for 35MB file. But i have 900MB file

egrep '<fullOperation>DELETE|<fullOperation>SET|<fullOperation>CREATE|<fullOperation>GET|<fullResult>RESP '

Ouput was-

<fullOperation>GET:ESUB:MDN,989371072136;</fullOperation>
<fullResult>RESP:0:MDN,989371072136:CODE,432350022011344:LASTNAME,989371072136:FIRSTNAME,2008-11-08_16_10:COUNTRY,IR:LANG,fa:PRE,1:SUBNAME,Eserve:MMS,0;</fullResult>
<fullResult>RESP:0;</fullResult>
<fullResult>RESP:0;</fullResult> --> Resp: comes twice


Output should be-
GET
Resp:0