Dear Venu,
Thanks for your help. When I run your suggested command line I got the following error:
sed: -e expression #1, char 1: unknown command: ` ' '
Please, tell me how to write into an output file and not only printing on the screen. thanks again.