Concatenate two lines in a fIle

Hi All,

Can any one help me in finding the solution for concatenating two or more lines in a file and writing them to a temporary file.

for Example:
He is a wise student.
So he got first rank.
This is in a file i want the output as
He is a wise student so he got first rank. into a file

Please help me Thanks in advance.

Hi,

Try this code,

awk '{ORS="";print;}' File

Cheers,
Ranga:)

$ paste - - < infile

can explain it briefly i didn't got the solution....