mass word find/replace
BjörnAndersson
gaqzi at sanitarium.mine.nu
Wed Jan 7 07:30:33 PST 2004
sed(1) should be able do the trick.
sed -e /pn_/s//nuke_/g *
The above command should replace all pn_ to nuke_ in all files in the directory you run the command.
/Björn
> 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"
More information about the freebsd-questions
mailing list