Skip to main content
2 of 9
added 10 characters in body

How to Merge every three lines

I have a file contains below pattern upto 2000 lines for every 3 lines the pattern repeats, with different Numerical values but text values at beginning are common upto end of the file. Here I need merge every three lines. Like "ABC 1223334 Days 344678544324677 Base 45666". Please guide me in this regard.

ABC 1223334

Days 344678544324677

Base 45666

ABC 1234565

Days 234567899765443

Base 456643 . . . .