Strip ^M with sed #2 (was Re: [plug] Netscape Default Profile...)
Steve Grasso
steveg at calm.wa.gov.au
Tue Feb 22 10:49:51 WST 2000
>BTW: Any idea how I use sed to strip out ^M's (artefact of DOS txt files) from
>a text file?
>[snip]
>Quote from the "sed" manpage about Regular Expressions:
> [XXX FIXME: more needs to be said. At the
> very least, a reference to another document which
> describes what is supported should be given.]
Having had a bit of a play, it would appear that neither \r (carriage
return) nor ^M are supported in sed regex's
(any reason you can't use a perl one-liner Trevor?)
Steve
More information about the plug
mailing list