Date: Tue, 24 Nov 1998 18:39:33 -0500 (EST) From: jack <jack@germanium.xtalwind.net> To: Malartre <malartre@aei.ca> Cc: questions@FreeBSD.ORG Subject: Re: "vi" problem with search & replace (vi do not accept "/"). Message-ID: <Pine.BSF.4.05.9811241836330.233-100000@germanium.xtalwind.net> In-Reply-To: <365B4001.4EFA71EB@aei.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Nov 1998, Malartre wrote: > :%s/</TT></B></FONT>/<</COMMAND>>/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;</TT></B></FONT>;<</COMMAND>>;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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811241836330.233-100000>