Thursday, September 27, 2012

Remove ^M with Vi

Every now and then I need to strip ^M characters from a file while using vi and too many times I've tried to remember the following and can't commit this to memory :P  

:%s/[ctrlkey+v and ctrl-key+M]//g

I end up having to google it and end up  at

http://thedaneshproject.com/posts/how-to-remove-m-character-with-vi/

So, ya, I've put it here also :)   Thanks thedansehproject!

No comments:

Post a Comment