how to get rid of ^M in the file

Hi
I have a file wich contains ^M characters, looks like these are from DOS,
Is there a way to get rid of them? Thanks -A

after that many posts you have, you should know how to search the forum. this question is asked many times. at the search box, type ^M and you can see similar threads like this.

You can use the utility dos2unix or:

tr -d '\r' < file > newfile

Regards

Thanks a lot, Franklin