Vi search and replace

Brad Bonkoski bbonkoski at mediaguide.com
Tue Oct 17 13:37:43 UTC 2006


Phil wrote:
> 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?
%s/\/T/T/g
the '\' is the escape
-B




More information about the fedora-list mailing list