mass word find/replace

Lance E. Lott lancelot at at-vantage.com
Wed Jan 7 07:30:30 PST 2004


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 at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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
-------------- next part --------------

---
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


More information about the freebsd-questions mailing list