Find & Replace string
Michael C. Shultz
ringworm at inbox.lv
Thu Dec 9 09:55:50 PST 2004
On Thursday 09 December 2004 08:48 am, antenneX wrote:
> Help on commands/script needed.
>
> In a website of 1.GB+ with several hundred thousand files, I need to
> interrogate all files to replace a single string like "oldone.010"
> with "newone.011"
>
> What's the best way to do this?
>
> Thanks in advance!
>
> Best regards,
>
> Jack L. Stone
>
> _______________________________________________
> 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"
try:
sed -i '' s/oldone.010/newone.011/g filename*
-Mike
(I got this from the dru hints on my login screen...)
More information about the freebsd-questions
mailing list