Using the "*" symbol, (doesn't have to be that one, any special character will do in order to indicate), how can I edit the text from this:
*berry straw rasp blue boysen * blahblah blahblah blahblah *berry straw blue * blah *table vege pingpong *
strawberry raspberry blueberry boysenberry blahblah blahblah blahblah strawberry blueberry blah vegetable pingpongtable
Every character after the first matching asterisk will be placed on every line until the 2nd asterisk match is found.
Any leads on how I can go about this? (sed or awk would be preferred, but if you can think of another way, please shoot me your code!)
I know how to remove all lines containing an asterisk, it's just the character placement part I can't think of