Thanks! Excellent! :)

Doing it by hand with vi, as i ended up having to do, went against all good 
principles! :)

On Mon, 12 Nov 2001 23:37, Andre Pang wrote:
> On Mon, Nov 12, 2001 at 11:30:47PM +1100, Michael Covi wrote:
> > Does anyone know how to type ^M so it appears as the actual control
> > character? I was stuck trying to convert some scripts from dos to unix
> > format on a very small root filesystem. It did have sed but how the hell
> > do you type in the character to match it and eliminate it?
>
> Press Ctrl-V Ctrl-M (or Ctrl-V Enter -- Ctrl-M is basically the
> same as the Enter key).
>
> Ctrl-V 'quotes' the next character and forces the shell to
> interpret it literally.  This works in most shells and in Vi.
>
> If you're using Emacs, the quote key is Ctrl-Q instead of Ctrl-V
> (so it's Ctrl-Q Ctrl-M).  In joe, it's ` (backtick).

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to