Vi search and replace
Pete Geenhuizen
pgeenhuizen at pobox.homeunix.net
Tue Oct 17 17:33:59 UTC 2006
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 at winxpert.com
> 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 at redhat.com
To
unsubscribe:
https://www.redhat.com/mailman/listinfo/fedora-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20061017/ebf2201e/attachment-0002.html
More information about the users
mailing list