*BSD News Article 2878


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!news.hawaii.edu!ames!olivea!uunet!uunet.ca!cognos!dealwisb
From: dealwisb@cognos.com (Brian de Alwis)
Newsgroups: comp.unix.bsd
Subject: Re: Port of ed/edit
Keywords: editors
Message-ID: <1992Jul31.001058.16926@cognos.com>
Date: 31 Jul 92 00:10:58 GMT
References: <2413@nic.cerf.net>
Organization: Cognos Incorporated, Ottawa CANADA
Lines: 16

In article <2413@nic.cerf.net> greggb@nic.cerf.net (Gregg Brekke) writes:
>Has anyone ported ed (preferred) or edit for 386bsd.  I use it in a lot
>of scripts and don't feel like doing all the substitutions by hand.

Try this:

-----8<-----CUT-HERE-----8<-----
# ed - invoke ex, as it's backward-compatible-enough-to-pass-for-ed
ex $*
-----8<-----CUT-HERE-----8<-----

It's ugly, but it works.
-- 
+++BdA  Brian de Alwis. Brain on loan to Cognos Inc, Ottawa, Ontario.
	dealwisb@cognos.com, or bsdealwi@napier.{waterloo.edu,uwaterloo.ca}
	"Nine out of ten men who tried camels said they preferred women"