Comments on this program please...

Darin Adler darin at ut-dillo.UUCP
Mon Dec 9 06:46:55 AEST 1985


< My apologies for following this up in net.lang.c >

The shell/sed solution, is obviously an appropriate way to solve this
problem, but let's not hide the simplicity of the solution while showing our
shell script cleverness.  The core of the sed solution is this:

sed '/ROUTE/s//\\
&/g'

or even:

sed '/ROUTE/s//\\
ROUTE/g'

Obviously, C programming is not the way to go here (unless sed is too slow?).
-- 
Darin Adler
{gatech,harvard,ihnp4,seismo}!ut-sally!ut-dillo!darin



More information about the Comp.lang.c mailing list