Subject: Re: NetBSD install missing things?
To: None <netbsd-help@netbsd.org>
From: Lasse =?iso-8859-1?Q?Hiller=F8e?= Petersen <lhp@toft-hp.dk>
List: netbsd-help
Date: 01/10/2002 13:27:09
At 22:21 +0100 09/01/02, David Laight wrote:

>> As I said, you can use ed just about anywhere.
>
>But no one ever does!

I do for several purposes.

Of course there is the "vi is not available" situation. But also for quick
scripts that must change (edit!) some files, it's nice to do
ed /somewhere/myfile <<ENDED
%s/whatever/is supposed to be/g
$a
adding a line
or two at the end
.
w
q
ENDED

I do tend to use ex instead, as I believe ed (in some implementations) has
or had a low limit on the size of files it allows. I wonder if this applies
to NetBSD ed?

See also option -e of diff.

-Lasse