I have two files A and B...

In file A the data is in this format:
Query= 1pzg
>rdf
--
Query= 2reg
>tyf
--

In file B the data is in format:
rdf cf=43567
tyf cf=56748

and so on...

I need to merge two files in this ways:

FIle C:
Query= 1pzg
>rdf cf=43567
--
Query= 2reg
>tyf cf=56748


Please help me... I ve tried using sort and uniq commands with cat but dsnt work fine... cat is simply appending Files A and B....

Thnx in adv.


Going Krazy!