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 > > _______________________________________________ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]"
try: sed -i '' s/oldone.010/newone.011/g filename* -Mike (I got this from the dru hints on my login screen...) _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"