fredrick andrews
New User
Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
I know that title is not comprehensive. Sorry about that.
I/p File 1:
Code: |
abcde*****xyz**pqr
mmmmm*****mno*****
|
I/p File 2 :
Code: |
vvvvvvvvvvvvvvvvvv
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
abcde*****xyz**pqr
vvvvvvvvvvvvvvvvvv
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
mmmmm*****mno*****
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
|
Expected Output:
Code: |
vvvvvvvvvvvvvvvvvv
!!!!!!!!!!!!!!!!!! <<
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
abcde*****xyz**pqr
vvvvvvvvvvvvvvvvvv
!!!!!!!!!!!!!!!!!! <<
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
!!!!!!!!!!!!!!!!!! <<
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
!!!!!!!!!!!!!!!!!! <<
mmmmm*****mno*****
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp |
For each entry in File 1 , we find more than 2 entries in File 2.
We will have to insert something like !!!!!!!!!!!!!!!!!!!!!!! (In this example) prior to the First occurrence of the matching record and also prior to the last occurrence of the matching record.
I have seen sample programs with Overlay , build and likes used in the same record. But, this is something different. |
|