I have searched for a similar topic here but most questions included single-character delimiter.
I have this sample of text:
Some text here,
continuing on next lineDELIMITERSecond chunk of text
which may as well continue on next lineDELIMITERFinal chunk
And the desired output is a list (extracted=()) which contains:
Some text here, continuing on next lineSecond chunk of text which may as well continue on next lineFinal chunk
As could be seen from the sample, "DELIMITER" is used as a splitting delimiter.
I have tried numerous samples on SO incl awk, replacing etc.
Some text here,continuing on next lineone entry in the final array?