From owner-freebsd-questions@FreeBSD.ORG Sat Jan 10 15:26:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6CE216A4CE for ; Sat, 10 Jan 2004 15:26:38 -0800 (PST) Received: from www6.web2010.com (www6.web2010.com [216.157.5.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF83243D49 for ; Sat, 10 Jan 2004 15:26:36 -0800 (PST) (envelope-from MLandman@face2interface.com) Received: from delliver.face2interface.com (dialup-wash-129-203.thebiz.net [64.30.129.203] (may be forged)) by www6.web2010.com (8.12.10/8.9.0) with ESMTP id i0ANQPAU012571; Sat, 10 Jan 2004 18:26:27 -0500 (EST) Message-Id: <6.0.0.22.0.20040110182450.0a09ce58@pop.face2interface.com> X-Sender: face@pop.face2interface.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Sat, 10 Jan 2004 18:26:30 -0500 To: Matthew Seaman , FreeBSD Mailing List , Gary Kline From: Marty Landman In-Reply-To: <20040110230218.GA5347@happy-idiot-talk.infracaninophile.co .uk> References: <20040110221036.GA44130@tao.thought.org> <20040110223308.GA4881@happy-idiot-talk.infracaninophile.co.uk> <20040110223907.GA16659@Uruk-Hai.Sanitarium.mine.nu> <20040110230218.GA5347@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: perl script question. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2004 23:26:38 -0000 At 06:02 PM 1/10/2004, Matthew Seaman wrote: >On Sat, Jan 10, 2004 at 11:39:07PM +0100, Bj=F6rn Andersson wrote: > > > If this occures more than once on a line we should have the line as= this: > > perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename > >Good point. Also, if the stuff_separated_by_underscores wraps around >onto more than one line, then there may not be any leading whitespace: I don't see why the translate sol'tn that Gary Kline gave first isn't= adequate. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml