The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



Thread: Compare files
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #24 (permalink)  
Old 03-13-2007
kharen11 kharen11 is offline
Registered User
 

Join Date: Mar 2007
Location: Manila
Posts: 25
Quote:
Originally Posted by matrixmadhan
I couldnt understand the statements really!


So, the difference is in these two,
Code:
AAABB370 role1 role3 role2
AAABB374 role1 role3 role6 role2
And if you could see that,

when you say the needed output should be
AAABB370 role3 role2

and not AAABB370 role1 role2 role3

... how is role2 matched with AAABB370 then ? ....

' role2 ' should not be displayed with AAABB370 as per your statement.

Either of the case pattern is matched MI_REC_DUP is matched with MI_REC with role2

T
Sorry, If I havent understood it correctly!

I believe am getting the output as you had said before.


If not clear, please post with clarifications !

Opps!! sorry..

The output should be:
AAABB370 role3 (without the role2)
AAABB371 role3
AAABB372 role3 role4
AAABB373 role6 role5
AAABB374 role1 role2 role3 role6

For clarification:
AAABB370 cannot have role1 and role2 because his role is MI_REC_DUP and not MI_REC.

AAABB374 should have role1 and role2 because it has tha exact name of MI_REC.

Hope its clearer this time..

Last edited by kharen11; 03-13-2007 at 10:42 PM..
Reply With Quote