Caret M or ^M creeps into files imported to unix from windows/dos. It is a bad line break or carriage return. It can be seen in vim.
Caret M is a single character that can be created by pressing control+v and control+m. Writing Shift+6M would not work.
To remove caret M from the files give "%s/^M//g" on vi in escape mode.
Wednesday, May 6, 2009
Subscribe to:
Post Comments (Atom)
control-V followed by control- can be used to generate ^ for all such special characters.
ReplyDelete