How to get rid of ^M characters
**Q. How can I remove ^M characters from text files?
A. ^M are nothing more than carriage return, so it is easy to use the search and replace function of vim to remove them.
Enter vim and open the file. Then enter this after hitting ":" (Without the quotes)
That will do the job.