My Sample Text:
I have a file, that contains the following lines(sample).
Manolito Mapi
MapleStory MEEBO
MEEBO_audio MEEBO_unknown
MEEBO_video MGCP
MGCP_control MGCP_rtp
Microsoft\ Exchange Microsoft\ Exchange_generic
Mig33 MMS
Mojo Move
MPEG MPlus
I want to remove the spaces between the words, Then i want output as:
Manolito
Mapi
MapleStory
MEEBO
MEEBO_audio
MEEBO_unknown
MEEBO_video
MGCP
MGCP_control
MGCP_rtp
Microsoft\ Exchange
Microsoft\ Exchange_generic
Mig33
MMS
Mojo
Move
MPEG
MPlus
Please note, There shuould not be any training spaces after each word.
Please suggest me any awk or other programming script to achieve this.
Thanks,
Kumar