From owner-freebsd-questions@FreeBSD.ORG Sun Jan 14 02:45:53 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 2D4C516A415 for ; Sun, 14 Jan 2007 02:45:53 +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 CFB3313C44C for ; Sun, 14 Jan 2007 02:45:52 +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 l0E2jpJ9021885 for ; Sat, 13 Jan 2007 18:45:52 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l0E2jpLj021884 for freebsd-questions@FreeBSD.ORG; Sat, 13 Jan 2007 18:45:51 -0800 (PST) (envelope-from kline) Date: Sat, 13 Jan 2007 18:45:51 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20070114024551.GA21847@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: Subject: 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 02:45:53 -0000 o Anybody know if I can do a perl substitution of the scads of \x80\x9D to simple double-quotes (") from the command line? I've got many HTML files with this strange syntax (must be from Windows) that I'd like to make human-readable for myself. I know how to change s/OLD/NEW/ and make a *.bak of the old using perl from the cmd line. But nothing this obscure. ---Yes, I have scoured some web/perl docs; still fuzzy. thanks in advance, gary -- Gary Kline kline@thought.org www.thought.org Public Service Unix