Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 236 Bytes

clean-unix-file-script.md

File metadata and controls

7 lines (4 loc) · 236 Bytes

Remove CTRL-M characters from a file in UNIX

You can also do it in vi: % vi filename

Inside vi [in ESC mode] type: :%s/^M//g

To enter ^M, type CTRL-V, then CTRL-M. That is, hold down the CTRL key then press V and M in succession.