I have a file like:
I want to do the following - Basically pull the text with prefix ! ( like !Denver ) and append the text , less "!" to the next lines until another ! comes along with new text for proceeding lines
New York.Line 1
New York.Line 2
This is part of a bigger script - but am hoping to complete the rest myself.
I found the following which i am reviewing:
So I may get an answer myself shortly.