From owner-freebsd-questions@FreeBSD.ORG Sun Jan 14 20:16:08 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2D3016A4C2 for ; Sun, 14 Jan 2007 20:16:08 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9FFF513C428 for ; Sun, 14 Jan 2007 20:16:08 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l0EKFwPa028156; Sun, 14 Jan 2007 12:15:58 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l0EKFl0q028155; Sun, 14 Jan 2007 12:15:47 -0800 (PST) (envelope-from kline) Date: Sun, 14 Jan 2007 12:15:46 -0800 From: Gary Kline To: Giorgos Keramidas Message-ID: <20070114201546.GA28048@thought.org> References: <20070114024551.GA21847@thought.org> <20070114034148.GC2734@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070114034148.GC2734@kobe.laptop> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Gary Kline , freebsd-questions@freebsd.org Subject: Re: perl substitution question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2007 20:16:09 -0000 Thanks for all the ways, gents. (I never thought of tr, but now that seems like an option.) A week+ ago I tried perl using 's/\xNN/"/g' from the cmdline, but nojoy. The online docs said that \N{xx} would catch a hex character; that's what was fuzzy. {Very} early this morning I retried using \x80 and \x9d, \x9c separately. diff showed that things worked... mostly; then I found more hex characters that I had to carefully subs out. I'll write a script to do the whole bunch. No wonder I love Unix! gary -- Gary Kline kline@thought.org www.thought.org Public Service Unix