Ctrl-M at end of each line

I have a write a script in VI editor.whenever i open the Vi script ,it is showing ctrl-M at the end of each line.

Please tell me how to remove this Ctrl-M from each line.

Thanks in Advance

cat yourfile | tr -d '\015' > newfile

Thanks for replying. It is working fine

You can also use dos2unix command

dos2unix original_file > new_file