Need to remove all those ^M characters from a DOS file?

Need to remove all those ^M characters from a DOS file? Try

tr -d \ \r < dosfile > newfile

(No space between two slashes.)

Tags:

Comments are closed.