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

Leave a comment

Please be polite and on topic. Your e-mail will never be published.

You must be logged in to post a comment.