Date: Thu, 9 Dec 2004 09:53:18 -0800 From: "Michael C. Shultz" <ringworm@inbox.lv> To: freebsd-questions@freebsd.org Subject: Re: Find & Replace string Message-ID: <200412090953.18537.ringworm@inbox.lv> In-Reply-To: <019101c4de0e$dbdeb2d0$0200000a@SAGEAME> References: <019101c4de0e$dbdeb2d0$0200000a@SAGEAME>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" try: sed -i '' s/oldone.010/newone.011/g filename* -Mike (I got this from the dru hints on my login screen...)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412090953.18537.ringworm>