combine

Hi

I am having text file like this

001|ramu|hno221|><
sheshadripuram|delhi|560061><
002|krishna|hno225|><
newdelhimain|delhi|560061><

i want to combine every two lines as single...line...
i.e
001|ramu|hno221|sheshadripuram|delhi|560061

can u pls help me

 
awk '{printf("%s",$0);getline;printf("%s\n",$0)}' infile

sed solution:

sed -n 'N;s/><\n\(.*\)></\1/p' INPUT-FILE

will this do??

 paste -d"|" - - < filename