[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed matching of non-printable characters
From: |
Hans-Bernhard Broeker |
Subject: |
Re: sed matching of non-printable characters |
Date: |
19 Apr 2001 17:29:49 GMT |
Erik Johansson <address@hidden> wrote:
> Can you match e.g. \n and \r with sed,
Yes, but only by showing it an actual \r character, not the \r escape
sequence, in the command input. SED does not expand backslash
sequences. May require shell hackery or a sed script file to work nicely.
But then, for task as simple as killing \r characters, there's lots of
tools better suited to the task. "tr" or "recode", e.g.
--
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.