I have been stuck on this for while , and tried many ways but couldn't make it work.
let's say I have a text file , with content as follow
mark_line
variable1
value1
value2
mark_line
variable2
value3
mark_line
variable3
value4
value5
value6
value7
mark_line
...
...
mark_line
and so on , basically between each mark_line , the first line is variable name , and rest are values to that variable , which could be one line or multiple lines
expecting output to become like
variable1="value1 value2"
variable2="value3"
varaible3="value4 value5 value6 value7"
and so on ...
I figure this will need a while or for loop , but I couldn't work out proper way for it.
Any hint or thought would be very much appreciated.