Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2019 12:22:46 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: eee-dee anyone?
Message-ID:  <20190401122246.89061c15.freebsd@edvax.de>
In-Reply-To: <441s2o9zrr.fsf@be-well.ilk.org>
References:  <23e162e23288d9a2e498df5f40488bb8@kathe.in> <44muld9su4.fsf@be-well.ilk.org> <20190330035113.65fc995f.freebsd@edvax.de> <441s2o9zrr.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 Mar 2019 10:56:40 -0400, Lowell Gilbert wrote:
> Polytropon <freebsd@edvax.de> writes:
>=20
> > I think you're confusing vi and ex here (which are the same
> > executable), but ed is something different (a different program).
> > But I think the reason for this confusion is that using ed
> > feels like using vi's ex mode or the ex standalone program. :-)
>=20
> Yes, definitely.
>=20
> Because it's described by POSIX, ed(1) is with us to stay. Because it
> has non-trivial differences between POSIX and BSD versions (which have
> bitten me in the past), I use sed(1) regardless of whether ed would have
> done the job. I suspect that is a common pattern.

I think the aspect of POSIX-compliance is one of the main reasons
that so many "old-fashioned" programs still exist in default
installs of many UNIXes. UNIX books which cover UNIX in general,
instead of concentrating on one specific Linux version, still
often cover those "legacy tools". Yes, I just checked two:

Wolfinger, Christine: Keine Angst vor UNIX. Ein Lehrbuch f=FCr Einsteiger.
5. Auflage. VDI-Verlag. D=FCsseldorf. 1991.
("Don't be afraid of UNIX - a textbook for first-time users")

Gulbins, J=FCrgen & Obermayr, Karl: AIX UNIX. System V.4. Begriffe, Konzept=
e,
Kommandos. Springer-Verlag. Berlin, Heidelberg, New York. 1996.

Sidenote: They also cover sh, csh, and ksh.

And for further educational purposes, allow me to repeat that
ed is the "termonology originator" of the grep command binary:
g/re/p; g =3D global action, /re/ =3D regular expression, p =3D print;
for every line matching /re/, perform the action "print the line".
This is what grep does. Because it is what ed does.


--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190401122246.89061c15.freebsd>