Path: utzoo!attcan!uunet!mcsun!ukc!acorn!moncam!emmo From: emmo@moncam.co.uk (Dave Emmerson) Newsgroups: comp.sources.wanted Subject: SED-like substitution for PC Keywords: SED Message-ID: <307@marvin.moncam.co.uk> Date: 18 Dec 89 12:45:57 GMT Organization: Monotype ADG, Cambridge, UK Lines: 29 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!" } ; %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%