-
vi replace..pls read
I want to replace some entries in an -x file. The problem is the enties have a "/" in them. And as we all know the replace uses the "/" as the delimiter(for lack of a better term).
So how do I include / in the replace argument>
In case I haven't explained myself here is an example:
aaa/bbb/ccc -> xxx/yyy/zzz
thanks
Mace
-
You can just change the delimeter from the forward slash to an apostrophe, so you'd be after something like
Code:
:%s'aaa/bbb/ccc'xxx/yyy/zzz'g
(At least, that works in vim, I haven't tried in plain old vi ;-))
HTH
Giles
-
worked like a champ
thank you very much
mace