sed is broken under freebsd?

Alban Hertroys dalroi at
Thu Jan 13 20:05:01 UTC 2011

On 13 Jan 2011, at 6:10, Chris H wrote:
> FWIW On a hunch, I just performed an experimentwith sed(1)
> against gsed on 50,000 html documents. My mission; to replace all
> instances of:
> <HTML>
> <HEAD>
> with:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "">
> <html xmlns="" xml:lang="en" dir="ltr">

I do hope you didn't orphan a </head>-tag there?

Alban Hertroys

If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.


More information about the freebsd-stable mailing list