From owner-freebsd-questions@FreeBSD.ORG Thu Dec 9 17:17:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0936316A4CE for ; Thu, 9 Dec 2004 17:17:12 +0000 (GMT) Received: from galilee.polands.org (CPE-24-208-53-189.new.rr.com [24.208.53.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D1743D66 for ; Thu, 9 Dec 2004 17:17:11 +0000 (GMT) (envelope-from djp@polands.org) Received: from jericho.polands.org (jericho.polands.org [172.16.1.35]) by galilee.polands.org (8.12.9/8.12.9) with ESMTP id iB9HH9RZ025951; Thu, 9 Dec 2004 11:17:09 -0600 (CST) (envelope-from djp@polands.org) Received: from jericho.polands.org (localhost [127.0.0.1]) by jericho.polands.org (8.13.1/8.13.1) with ESMTP id iB9HH98U004957; Thu, 9 Dec 2004 11:17:09 -0600 (CST) (envelope-from djp@jericho.polands.org) Received: (from djp@localhost) by jericho.polands.org (8.13.1/8.13.1/Submit) id iB9HH9XJ004956; Thu, 9 Dec 2004 11:17:09 -0600 (CST) (envelope-from djp) Date: Thu, 9 Dec 2004 11:17:09 -0600 From: Doug Poland To: antenneX Message-ID: <20041209171709.GE54558@polands.org> References: <019101c4de0e$dbdeb2d0$0200000a@SAGEAME> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <019101c4de0e$dbdeb2d0$0200000a@SAGEAME> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Find & Replace string X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 17:17:12 -0000 On Thu, Dec 09, 2004 at 10:48:06AM -0600, 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? > find, xargs, and sed are your friends -- Regards, Doug