A vi question
Rashkae
ubuntu at tigershaunt.com
Tue Sep 8 18:47:23 UTC 2009
stan wrote:
> I was thinking that I needed something like:
>
> :.,$s/^*OTE/OTE/
>
> But * is not the appropriate wildcard here in vi.
>
> Any sugestions?
>
I don't know vi, so might be misinterpretting some of it's quirks/features.
However, strictly from a standard expression POV, you need .* rather than *
(. is the regular expression for any character. * indicates that it
will match any number of .)
So try: :.,$s/^.*OTE/OTE/
More information about the ubuntu-users
mailing list