On 17 Feb 2003 15:05:08 +1100
Ken Foskey <[EMAIL PROTECTED]> wrote:

> On Mon, 2003-02-17 at 13:23, Daniel Harper wrote:
> > Anyone know how to rip ^M (dos line return) using sed?
> 
> without reading the manual you might try 's/\r//g' this is definitely
> not portable, if not use hex characters \015 from memory again...

I've never been able to figure out a portable way
to mangle control chars with sed.

Use tr is the standard advice, I think:

echo '^M' | tr -d '\012' 



Matt
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to