Path: utzoo!attcan!uunet!mcsun!cernvax!chx400!ethz!neptune!iiic.ethz.ch!reberhar From: reberhar@iiic.ethz.ch (Rolf Georg Eberhardt) Newsgroups: comp.editors Subject: sed address arithmetic Message-ID: <8738@neptune.inf.ethz.ch> Date: 20 Sep 90 12:57:01 GMT Sender: news@neptune.inf.ethz.ch Distribution: comp Lines: 13 Hello Netlanders Is it possible to do address arithmetic in sed? I would like to do something like /searchpattern/+3 s/^// ie. inserting the tag three lines under all the lines containing searchpattern. Thanks. -- rolf