I am trying to solve one competitive question, where I'm stuck at below scenario can some one help me out to understand how the output can be achieved
Explanation : Every group of three consecutive rows should be folded into one
[ Output is shared below ]
Data in file :
Abc 123,
zyxhj pqr
raj
ram:
vilas,
1234
jkal
yui
gshj
Output :
Abc 123,zyxhj pqr raj
ram:vilas,1234
jkal yui gshj