I have a data as:
q
w
e
e
r
r
t
23
21
1
Whenever we find blank line change it to new column.
Output
q,e,23
w,r,21
e,r,1
,t,
I have tried but neither with sed nor I am able to change the row. Please let me know how can we achieve this.