Combine similar patterns



Hi all,

I have a problem in combining the nested/multiple patterns. The input of the file is as follows:

Input:-
<f1>
A
B
C
</f1=c>

D
E
F

<f1=c>
G
H
</f1=c>

I
J
<f1=c>

K

</f1=c>
L
M
<f1=c>

N
O
</f1>


and i would like to convert in to the following manner

Output:
<f1>
A
B
C
G
H
K
N
O
</f1>
D
E
F

I
J

L
M

I have got the file contents as showed in the input. I am trying to combine the matter between <f1=c>and </f1=c> in to single <f1>??.</f1>

Can anyone help in how to combine these nested/multiple patterns

Thanks in advance for the help

Regards
Anand


---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

Relevant Pages

  • [Disarmed] Loans From HDFC Bank
    ... Jiyo cricket on Yahoo! ... Messenger Mobile Stay in touch with your buddies all the time. ...
    (comp.sys.sgi.graphics)
  • request a cd
    ... Jiyo cricket on Yahoo! ... Messenger Mobile Stay in touch with your buddies all the time.-- ...
    (Ubuntu)
  • Re: Difference between for and while loop
    ... Jiyo cricket on Yahoo! ... Messenger Mobile Stay in touch with your buddies all the time. ...
    (Debian-User)