From owner-freebsd-questions@FreeBSD.ORG Sun Jan 14 03:51:11 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 4803116A407 for ; Sun, 14 Jan 2007 03:51:11 +0000 (UTC) (envelope-from matt@gsicomp.on.ca) Received: from daisy2.compar.com (daisy2.compar.com [216.208.38.133]) by mx1.freebsd.org (Postfix) with ESMTP id 15F6113C48A for ; Sun, 14 Jan 2007 03:51:10 +0000 (UTC) (envelope-from matt@gsicomp.on.ca) Received: from localhost (localhost.compar.com [127.0.0.1]) by daisy2.compar.com (Postfix) with ESMTP id 31A6B13C41A; Sat, 13 Jan 2007 22:42:24 -0500 (EST) X-Virus-Scanned: amavisd-new at compar.com Received: from unknown by localhost (amavisd-new, unix socket) id g4i4H2L9RCpq; Sat, 13 Jan 2007 22:42:23 -0500 (EST) Received: from gabby.gsicomp.on.ca (CPE00062566c7bb-CM0011e6ede298.cpe.net.cable.rogers.com [74.109.12.188]) by daisy2.compar.com (Postfix) with ESMTP id E188713C408; Sat, 13 Jan 2007 22:42:22 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gabby.gsicomp.on.ca (Postfix) with ESMTP id DDC7F6113; Sat, 13 Jan 2007 23:38:29 -0500 (EST) Received: from unknown by localhost (amavisd-new, unix socket) id client-uqo0Ze1z; Sat, 13 Jan 2007 23:38:11 -0500 (EST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (Postfix) with ESMTP id 77DE2610F; Sat, 13 Jan 2007 23:38:11 -0500 (EST) Message-ID: <001201c7378f$775f3e10$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: "Gary Kline" , "FreeBSD Mailing List" References: <20070114024551.GA21847@thought.org> Date: Sat, 13 Jan 2007 22:52:52 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 X-Virus-Scanned: amavisd-new at gsicomp.on.ca Cc: 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 03:51:11 -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? 80 hex = 200 octal 9D hex = 235 octal cat k | tr "\200" "\"" | tr "\235" "\"" > k.new -- Matt Emmerton