[PLUG] Need a vi command...
Chaz
chaz at bctonline.com
Tue Aug 26 09:22:02 UTC 2003
:%s/\.$//
You don't need the trailing 'g'.
The 'g' means 'match every occurance on each line'.
There is only one occurance of something being at the end of the line
($).
-chaz
---- Original Message ----
From: dpool at hevanet.com
To: plug at lists.pdxlinux.org
Subject: Re: [PLUG] Need a vi command...
Date: Sat, 23 Aug 2003 17:19:34 -0700
>Chaz wrote:
> > :1,$s/\.$//
> > That will delete a literal period at the end of every line.
> > -chaz
>
>That's 11 key strokes.
>
>Siobhan Elliott wrote:
>
> > :%s/\.$//g
>
>That's 10 keystrokes.
>
>Can anyone best that?
>
>david
>
>
>_______________________________________________
>PLUG mailing list
>PLUG at lists.pdxlinux.org
>http://lists.pdxlinux.org/mailman/listinfo/plug
Charles L. Sliger
chaz at bctonline.com
More information about the PLUG
mailing list