Combine 2 line with space issue

Hello all,
i am new to linux , and please need your help and suggestion on....
when vi 1.txt :set list, it looks like
$ is displaying the end of line

Filter: vlan1-BUM-1M $
BUM-1M 0 0$
Filter: vlan2-BUM-1M $
BUM-1M 0 0$
Filter: vlan3-BUM-1M $
BUM-1M 0 0$
Filter: vlan4-BUM-1M $
Filter: vlan5-BUM-1M $
Filter: vlan6-BUM-1M $
BUM-1M 0 0$

how i can use the awk or... to change the output to
Filter: vlan1-BUM-1M BUM-1M 0 0
Filter: vlan2-BUM-1M BUM-1M 0 0
Filter: vlan3-BUM-1M BUM-1M 0 0
Filter: vlan6-BUM-1M BUM-1M 0 0
while vlan 4 and vlan5 is not require to display as they does not follow with "BUM"

actually there was a post from me before..

it works perfect if i copy and paste from the putty.
but if i run on the bash script... the output was only showing
BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0

i try some sed with erase some whitespace but.....
thanks a lot.

sed -n '                              
/^Filter/h;                   
/^BUM/H;x;s/\n/ /p' INPUTFILE 

Better:

sed -n '                              
/^Filter/h                   
/^BUM/H;x;s/\n//p' INPUTFILE 

The full story is i use a expect script to telnet to a network equipment, and grep out some of the stuff to become 1.txt.

however i try the sed recommended by you, but still getting , what was my mistake will be?

BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0
BUM-1M 0 0

Check what newline chars you got (DOS or Unix?).

Yazu

i just checked, 101.txt file is manually copy and paste from putty, and works fine.
while 1.txt is a long whitespace before the $ .

thanks a lot.

vi 101.txt :set list
Filter: vlan429-BUM-1M$
BUM-1M 0 0$

vi 1.txt :set list
Filter: vlan1-BUM-1M (a long whitespace...) $
BUM-1M 0 0$