Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2004 09:30:19 -0600
From:      "Lance E. Lott" <lancelot@at-vantage.com>
To:        "M.D. DeWar" <mark@s-wit.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mass  word find/replace
Message-ID:  <6.0.1.1.2.20040107092944.01bb3780@mail.at-vantage.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--=======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=======--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.1.1.2.20040107092944.01bb3780>