From owner-freebsd-questions Tue Nov 24 15:39:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA23694 for freebsd-questions-outgoing; Tue, 24 Nov 1998 15:39:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from germanium.xtalwind.net (germanium.xtalwind.net [205.160.242.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA23689 for ; Tue, 24 Nov 1998 15:39:44 -0800 (PST) (envelope-from jack@germanium.xtalwind.net) Received: from localhost (jack@localhost) by germanium.xtalwind.net (8.9.1/8.9.1) with ESMTP id SAA00248; Tue, 24 Nov 1998 18:39:33 -0500 (EST) Date: Tue, 24 Nov 1998 18:39:33 -0500 (EST) From: jack To: Malartre cc: questions@FreeBSD.ORG Subject: Re: "vi" problem with search & replace (vi do not accept "/"). In-Reply-To: <365B4001.4EFA71EB@aei.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 24 Nov 1998, Malartre wrote: > :%s//<>/g > > But that give me an error (has I expected, because of the "/" in those > HTML tags. > > Usage: [line [,line]] s [[/;]RE[/;]repl[/;] [cgr] [count] [#lp]]. ^^^^ ^^^^ The answer is right there in the message vi gave you. Use / OR ; as the seperator character. :%s;;<>;g -------------------------------------------------------------------------- Jack O'Neill Systems Administrator / Systems Analyst jack@germanium.xtalwind.net Crystal Wind Communications, Inc. Finger jack@germanium.xtalwind.net for my PGP key. PGP Key fingerprint = F6 C4 E6 D4 2F 15 A7 67 FD 09 E9 3C 5F CC EB CD enriched, vcard, HTML messages > /dev/null -------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message