Concate 2 line into 1 line

Hi,

000732140470,DD,R,29.99

,SOM=1
000732145376,DD,R,29.99

,MOM=0,SOM=0
000732155320,DD,R,29.99

,MOM=0
000732156860,DD,D,9.99

,MOM=3,RNO=3,SOM=1
000732156921,DD,D,9.99

,MOM=5,RNO=5,SOM=7
000732157461,DD,R,29.99

,SOM=0
000732173522,DD,D,9.99

,RNO=0

i have to make the format like

000732140470,DD,R,29.99
,SOM=1
000732145376,DD,R,29.99
,MOM=0,SOM=0
000732155320,DD,R,29.99
,MOM=0
000732156860,DD,D,9.99
,MOM=3,RNO=3,SOM=1
000732156921,DD,D,9.99
,MOM=5,RNO=5,SOM=7
000732157461,DD,R,29.99
,SOM=0
000732173522,DD,D,9.99
,RNO=0

pls help me...

Thanks!
vaskar

sed -e 'N;s/\n//g' filename

sed '/^$/d' filename

not working...

is it giving any errors if so plz post the error.

No.it is not give any type of error.But it is not working...

$ sed '/^$/d' filename

will remove the blank lines and will display the results in the screen.

You have to redirect the output to a new filename.

$ sed '/^$/d' filename > NEW_FILENAME