Replace ^m With newline

Open file with vi or vim

:%s/^m/\r/g

Please hold ctrl + m + v. That is ^M

Tags: 

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.