Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 1999 21:05:26 +0100
From:      Mark Ovens <marko@uk.radan.com>
To:        Eduardo Viruena Silva <mrspock@esfm.ipn.mx>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: replace in vi...
Message-ID:  <19990525210526.A277@marder-1>
In-Reply-To: <Pine.BSF.4.05.9905251415490.8692-100000@Michelle.esfm.ipn.mx>; from Eduardo Viruena Silva on Tue, May 25, 1999 at 02:21:09PM -0500
References:  <Pine.BSF.4.05.9905251415490.8692-100000@Michelle.esfm.ipn.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 25, 1999 at 02:21:09PM -0500, Eduardo Viruena Silva wrote:
> 
> ehem...
> 
> I'm using  "vi" and I would like to know how to replace
> character '\0xb4'  by  character '\'' in all my text.
> [I mean, character which has code: 0xb4 = 0264 = 148
> by apostrophe]
> 

:%s/^Xb4/'/g

where ``^X'' is typed as Ctrl-X. When you've typed the 4 it will
appear as:

:%s/\xb4/'/g

HTH

> any ideas?
>                           ______                     _  
>             *           /   /###\                   / \       __
>  /\  /\             *  /  ./#### \         *     \__|_/      |  |
> /  \/  \               |   b#####|   *            _ |   __   |  |  __
> =    .. \____          \ \_\#####/               / \|  /  \  |  | /\_\/
> =          \_|    *     \___\###/       *        \_/\_/\__/\__\/_/\__/
>  =   \______/           _
>   | |          
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

-- 
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://www.users.globalnet.co.uk/~markov
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:marko@uk.radan.com                  http://www.radan.com



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?19990525210526.A277>