I have a file which has a format of:
start-tag,value,value,value,
,value,
,value,
,value
start-tag,value,value,value,
,value,
,value
start-tag,value,value,value,
start-tag,value,value,value,
,value
and I need all the lines associated with a start tag on the same line so that I get:
start-tag,value,value,value,,value,,value,,value
start-tag,value,value,value,,value,,value
start-tag,value,value,value,
start-tag,value,value,value,,value
I can join adjacent lines but the variable lines associated with the record is causing me grief, any pointers would be appreciated.
I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
start-tag,value,value,value,
,value,
,value,
,value
start-tag,value,value,value,
,value,
,value
start-tag,value,value,value,
start-tag,value,value,value,
,value
and I need all the lines associated with a start tag on the same line so that I get:
start-tag,value,value,value,,value,,value,,value
start-tag,value,value,value,,value,,value
start-tag,value,value,value,
start-tag,value,value,value,,value
I can join adjacent lines but the variable lines associated with the record is causing me grief, any pointers would be appreciated.
I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams