[wplug] vi question

billings at negate.org billings at negate.org
Thu Jul 3 11:21:45 EDT 2003


On Thu, 2003-07-03 at 11:06, Scott Eicher wrote:
> For you vi users I have a question:
> 
> I would like to delete all ^M control characters from an ascii file. Here is
> what I tried to accomplish this but it doesn't work:
> 
> :%s/\^M//g

\^M isn't a control code.

Try 'control-v control-m'.

Also, if you are trying to convert a dos file to unix, or vice-versa,
try 'dos2unix' and 'unix2dos', which should be part of a standard
install.
-- 
Jonathan S Billings <billings at negate.org>
TSFNKP



More information about the wplug mailing list