From owner-freebsd-questions Wed Dec 20 4:37:22 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 20 04:37:21 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from lvcablemodem.com (hams2.lvcablemodem.com [24.234.0.76]) by hub.freebsd.org (Postfix) with ESMTP id 4056A37B400 for ; Wed, 20 Dec 2000 04:37:21 -0800 (PST) Received: from a ([24.234.86.48]) by lvcablemodem.com with Microsoft SMTPSVC(5.5.1877.517.51); Wed, 20 Dec 2000 04:37:04 -0800 From: "Richard Schuder" To: Subject: Replacing text with forward slash in vi Date: Wed, 20 Dec 2000 04:36:52 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 but, the two forward slashes following "http:" confuse vi's replace command. Any ideas? Richard Schuder Cool Wave Communications To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message