Home > Uncategorized > Survival – how to remove ^M from a file

Survival – how to remove ^M from a file

There must be many users affected when you use a file edited on Windows and once passed to Linux/Unix is common to find a character at the end of line.

Using vi editor you could fix this inconvenient.

<Esc>:%s/<Ctrl-V><Ctrl-M>//g

 

Bye for now.

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment