[Novalug] vi question
Matt Thompson
matthew.thompson at nrl.navy.mil
Tue Dec 4 15:06:08 EST 2007
The heavens stretched forth and Jon Sime decreed the following on or
about 12/04/2007 02:13 PM:
> Charles M Howe wrote:
>> How do I change all instances up to the end of a file of a single letter
>> with another letter?
>
> This is for vim, but I think the syntax is the same for other vi clones,
> too. If you only want to change occurrences from your current position
> in the file to the end of the file:
>
> :,$s/<orig>/<new>/g
I do believe this is ed syntax, which influenced grep, sed, awk, perl...
Remember ladies and gents, "Ed is the standard text editor":
http://www.gnu.org/fun/jokes/ed.msg.html
And then there is the inevitable Bill Joy quote (scroll down a bit):
http://en.wikipedia.org/wiki/Ed_(text_editor)
Matt
--
Matt Thompson, PhD
Naval Research Laboratory
202-767-2160
More information about the Novalug
mailing list