[Novalug] vi question

Kevin Dwyer kevin at pheared.net
Tue Dec 4 14:05:59 EST 2007


To replace 'x' with 'y' everywhere in the file:
:%s/x/y/g

You can add ranges to that in order to only change occurrences from this
point to the end, etc.

-kpd

On 12/4/07, Charles M Howe <cmhowe at patriot.net> wrote:
>
> List,
>
> How do I change all instances up to the end of a file of a single letter
> with another letter?
>
> I know. It ought to be simple. But I have pored through the chapter on
> vi in "Linux in a Nutshell" and I don't see it.
>
> Charlie
>
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20071204/8823fff5/attachment.htm


More information about the Novalug mailing list