🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3422

question about "vi"

#3422
From: Andrew T. Como
Date: Fri, 10 Feb 1989 20:45
24 lines
1004 bytes
I have a question about vi.

Here are five lines:
	The cow jumped over the moon
	The cow jumped over the moon
	The cow jumped over the moon
	The cow jumped over the moon
	The cow jumped over the moon

	How can I substitute /cow/dog only on lines 1 and 5

I guess what I'm asking is if I
search for cow -  /cow/
now substitute - s/cow/dog/
skip the next 3 lines  n  n  n
...how can I re-issue the same substitution when I come to line 5


Thanks in advance for the help

		como@bnlux0.bnl.gov
BITNET:		como@bnlux0.BITNET
UUCP:		....philabs!sbcs!bnl!como
Technical Details
Message-ID: <740@bnlux0.bnl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!rutgers!rochester!uhura.cc.rochester.edu!sunybcs!sbcs!bnlux0!bnl-max!como

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!rutgers!rochester!uhura.cc.rochester.edu!sunybcs!sbcs!bnlux0!bnl-max!como
From: como@bnl-max (Andrew T. Como)
Newsgroups: comp.editors
Subject: question about "vi"
Message-ID: <740@bnlux0.bnl.gov>
Date: 10 Feb 89 20:45:47 GMT
Sender: news@bnlux0.bnl.gov
Reply-To: como@bnl-max (Andrew T. Como)
Organization: Brookhaven National Lab, Upton N.Y.
Lines: 24