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..
https://www.unix.com/shell-programmin...e-2-lines.html
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.