i need only the latest group if header is repeated.
Input:
---------
Header A1
data1
data2
data3
header A2
data4
header A2
data5
data6
header A2
data7
data8
header A3
data9
Output:
----------
Header A1
data1
data2
data3
header A2
data7
data8
header A3
data9
Could you please help?