Created
April 6, 2011 06:11
-
-
Save Andrew8xx8/905219 to your computer and use it in GitHub Desktop.
замена dos-овых концов строк (\r\n -> \n)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Если vim автоматически не распознал DOS line ends, | |
то в конце строк будут символы ^M. | |
Удалить их можно простой заменой: | |
:%s/^M//g | |
Символ ^M при этом вводится как Ctrl-V Ctrl-M. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment