From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 07:30:30 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 675AD16A4D0 for ; Wed, 7 Jan 2004 07:30:30 -0800 (PST) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 516D043D69 for ; Wed, 7 Jan 2004 07:30:18 -0800 (PST) (envelope-from lancelot@at-vantage.com) Received: from peter.at-vantage.com (adsl-68-89-117-169.dsl.rcsntx.swbell.net [68.89.117.169])i07FUFK0150042; Wed, 7 Jan 2004 10:30:16 -0500 Message-Id: <6.0.1.1.2.20040107092944.01bb3780@mail.at-vantage.com> X-Sender: peter@mail.at-vantage.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Wed, 07 Jan 2004 09:30:19 -0600 To: "M.D. DeWar" From: "Lance E. Lott" In-Reply-To: <003e01c3d531$fec960b0$fa65a8c0@ocfl061> References: <20040106075951.4910.qmail@www-01.iinet.net.au> <44hdz7rdwk.fsf@be-well.ilk.org> <003e01c3d531$fec960b0$fa65a8c0@ocfl061> Mime-Version: 1.0 Content-Type: multipart/mixed; x-avg-checked=avg-ok-413714E1; boundary="=======710B6F72=======" cc: freebsd-questions@freebsd.org Subject: Re: mass word find/replace 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: Wed, 07 Jan 2004 15:30:30 -0000 --=======710B6F72======= Content-Type: text/plain; x-avg-checked=avg-ok-413714E1; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit load it up in vi and type: :%s/pn_/nuke_/g Lance At 09:21 AM 1/7/2004, you wrote: >I am trying to find a way to replace one word in a file >with another word, like windows wordpad find/replace. > >I need to change pn_ to nuke_ and have a 188000 lines to do it on. ugh > >thanks >Mark > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004 --=======710B6F72======= Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-413714E1 Content-Disposition: inline --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004 --=======710B6F72=======--