Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!mephisto!udel!ee.udel.edu From: new@ee.udel.edu (Darren New) Newsgroups: comp.editors Subject: Re: ex search & substitution question Message-ID: <26814@nigel.ee.udel.edu> Date: 7 Aug 90 15:23:45 GMT References: <3440001@hprnd.HP.COM> Sender: usenet@ee.udel.edu Organization: University of Delaware Lines: 10 Nntp-Posting-Host: estelle.ee.udel.edu In article <3440001@hprnd.HP.COM> brent@hprnd.HP.COM (Brent McInnis) writes: >But to perform it on a *range* of lines (say, lines 10 thru 20), I >*want* to say >:10,20/^#[iut]55/s/55/71/ Try :10,20g/^#[iut]55/s/55/71/ I think you can give a range to the g command to have it operate on the lines within the range that also match the pattern. -- Darren