Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2000 09:39:41 -0800 (PST)
From:      Brian Beattie <beattie@beattie-home.net>
To:        Richard Schuder <rschuder@coolwave.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Replacing text with forward slash in vi
Message-ID:  <Pine.BSF.4.21.0012200938380.396-100000@raven.pdx.beattie-home.net>
In-Reply-To: <NEBBIIEFELBNMFEGKECBMEMFCBAA.rschuder@coolwave.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 Dec 2000, Richard Schuder wrote:

> Here's a tough one!
> 
> I want to replace the two dots ``..'' with a URL address like
> ``http://website.address.com'' in the following text:
> 
> "../path/to/website/index.html"
> 
> The vi command would be...
> 
> :s/\../http://website.address.com
s/\.\./http:\/\/website.address.com/
> 
> but, the two forward slashes following "http:" confuse vi's replace command.

Brian Beattie            | This email was produced using professional quality,
beattie@beattie-home.net | standards based software.  Users of Microsoft
                         | products or other substandard software should
www.beattie-home.net     | contact the author about receiving a Free upgrade to
                         | FreeBSD or Linux.   "FreeBSD: The power to serve"



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012200938380.396-100000>