LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: BlackAdder <daved@uq.net.au>
To : linuxsa@linuxsa.org.au
Date: Wed, 5 Apr 2000 20:03:59 +0930
RE: Vi question
Mark Asked:
> I've searched in the man pages and various docs - but with no success. I'm
> wondering if there is a way of delimiting the vi search and replace so
> that the forward slash can be included. Normally for search and replace
> I'd use something like:
> %s/old/new/g
> and it works.
> What I want to do is replace a line like:
> file://localhost/someuser/somedirectory/file.html
> with:
> http://some_www_address/file.html"
> but the forward slashes are screwing it up.
> Any help appreciated.
You need to delimit the / with an esc char ie: \
s/file:\/\//http:\/\//g
(I think that's the right number of slashes)
Dave
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page