Re: Vi search and replace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, October 17, 2006 09:41, Phil wrote:
Thank you for the replies! you guys rock and always help!



On 10/17/06, Luc MAIGNAN luc.maignan@xxxxxxxxxxxx > wrote:
You can simply escape it by '\'

%s/\/T/T/g

Best regards

Phil a écrit :
> Hello,
>
> I am trying to do a search and replace in vi but I need to search and
> replace on "/T"
>
> so how do I escape the /?
>
> %s/"/T"/T/g obvisouly does not work....
>
> how do I specify a / in the vi search string?
Gee why go to all that trouble?  The / is simply a field delimiter, so use something else instead, I ususally use a ,
%s,/T,T,g
Works just dandy.
Pete
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux