[SC icon] How to remove Control-M (^M) from files

Description
How to remove CTRL-M characters from a file in UNIX.

You may need to do this when you import a text file from MS-DOS (or MS-Windows), and forget to transfer it in ASCII or text mode. Here are several ways to do it; pick the one you are most comfortable with.

Please tell us what you think of this page!

Back to [Help/News page]


[Support Center] Help | Services | Tools | Groups | Software | Hardware
URL: http://www2.ucsc.edu/cats/sc/help/unix/clean_ctrl_m.shtml
Created 1-April-1999 - Last revised on Thursday, 18-Apr-2002 14:30:18 PDT
UC Santa Cruz - Communications and Technology Services - Jacques Delsemme