ed
ccw at dvamc.UUCP
ccw at dvamc.UUCP
Fri Sep 30 00:36:02 AEST 1983
References: bronze.772
When trying to change the nth occurance of a string using "ed" I
use "s/string/new_string/i". "ed" then prints the line, does a
newline and puts some carrot symbols under the section to be
changed. You the either type "s" or newline. I'm NOT sure that
the use of "i" in this case is standard. It may be a local change.
If it is, and there is sufficient interest, I fish out the section
of code that does this and post it.
Chris Woodbury
decvax!mcnc!dvamc!ccw
More information about the Comp.unix.wizards
mailing list