Mark 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


   perl -i.bak -pe 's/pn_/nuke_/g' /input/file(s)


The old file(s) will be saved with the extension .bak.


-- 
Cheers,
Bernard
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to