Este é um blog onde anoto dicas técnicas de informática e computação.
This is a blog where I write down technical tips on computing.
Be aware that some resources used in this blog may use cookies to collect information used by Ads and Google Analytics. I do not monetize from this website, neither require or use personal information.
Tuesday, October 13, 2015
UNIX DOS Carriage Return CRLF VIM
set ff=unix set ff=dos
vi -b filename
You can replace one character using r in normal mode.
Or you can enter a "return" in command line mode by typing .
In vim session try:
:%s/^M//g
Where ^M is achieved by ctrl+V+M keystrokes together.
No comments:
Post a Comment