Combine lines from file
Hello,
Input file looks like this:
apples
bananas
oranges and rice
pears
cherries
mango
I want output to look like this:
apples bananas
oranges and rice pears
cherries mango
It should combine line 1 with line 2 and line 3 with line 4 like that....
Right now, only way I can think is to use head -n 2 but I want output file to be created with all of input processed....
Thanks for all the help in advance!!!
|