[comp.sources.wanted] SED-like substitution for PC

emmo@moncam.co.uk (Dave Emmerson) (12/18/89)

Seasonal greetings!

I'm porting some stuff from BSD UNIX to a PC, and need something to
replace SED. Since there must almost certainly be something in the PD,
I see no point in re-inventing the wheel.

Only one of the functions is actually needed, SED -f patternfile datafile
which (for those not familiar) applies the all of the commands in patternfile
to the entire data file. The patternfile (in my application) consists entirely
of global substitution commands of the form :

s/this pattern/some other pattern/g

it can be hacked, if necessary, though I would rather hack some source
to make it accept this form.

Have a peaceful holiday!

Dave E.

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%

static char disclaimer[] = { 
"These are MY opinions. My employers don't have the collective IQ to form
 an opinion of their own, that's what they hired me for!" } ;

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%

			    

jesse@proxftl.uucp (Jesse Perry) (12/20/89)

In article <307@marvin.moncam.co.uk> emmo@moncam.co.uk (Dave Emmerson) writes:
>I'm porting some stuff from BSD UNIX to a PC, and need something to
>replace SED. Since there must almost certainly be something in the PD,
>I see no point in re-inventing the wheel.

I have modified the version of GNU sed posted in July 89 to run on a PC
(along with fixing a number of bugs in the Unix version).  I plan to
send the result back to the GNU people when it's complete (or should I
just post it?  what's the netiquette thing to do?), but I can mail a
"pre-release" version to anyone interested.  Just send me mail -- I'm
a little hazy on how to send mail to the UK; maybe you can give me
a few hints.

Jesse Perry                  INTERNET: jesse%proxftl.uucp@uunet.uu.com
UUCP: uunet!proxftl!jesse      BITNET: proxftl!jesse@psuvax1.uucp