John Chase’s Blog

Online Marketing Rants and Raves

To replace the DOS newline character with a unix/linux newline

without comments

:%s/^M/\r/g

Remember, the ^M is [ctrl-v + ctrl-m] and not [shift-6].

Written by admin

January 27th, 2009 at 1:59 pm

Posted in linux

Leave a Reply