This may sound harsh, but you could not have been any lazier if you tried. We are here to help, at no cost to you, so why don't you take the time to explain your data instead of leaving your dump for us to decipher?.
Are those values constant? If not, how are they made avaialble? Are the records that begin and end inclusion always adjacent?
And, please, use code tags for sample code and data.
There is a huge difference between printing lines between two given strings and duplicating data found on the 1st line starting with an asterisk onto the ends of the following non-empty lines up to the next line starting with an asterisk.
Do you want to print selected lines or do you want to add data to the ends of selected lines?
How will your script be told which lines to select?
Actually what i intend to achieve is "duplicating data found on the 1st line starting with an asterisk onto the ends of the following non-empty lines up to the next line starting with an asterisk".