On Tue, 30 May 2000 18:58:16 -0500,
Adi Linden <[EMAIL PROTECTED]> wrote:
>How can I match control characters like carriage return ^M in sed? Is
>there a way to describe characters in ascii code?
sed -e 's/^M//g' works. The ^M was entered as Control/V followed by
Control/M under bash. Control/V under bash and vi means 'enter the
next character as is, even if it is escape or a control character'.
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.