From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 13:00:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C82510656FC for ; Thu, 4 Dec 2008 13:00:25 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id 271308FC28 for ; Thu, 4 Dec 2008 13:00:24 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id mB4D0LmP017851; Thu, 4 Dec 2008 14:00:21 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id mB4D0LDt017850; Thu, 4 Dec 2008 14:00:21 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Thu, 4 Dec 2008 14:00:21 +0100 From: Ruben de Groot To: Vincent Hoffman Message-ID: <20081204130021.GA17518@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Vincent Hoffman , mcoyles@horbury.wakefield.sch.uk, freebsd-questions@freebsd.org References: <002b01c95609$ed0c7200$c7255600$@wakefield.sch.uk> <4937D272.9090108@unsane.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4937D272.9090108@unsane.co.uk> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (ei.bzerk.org [127.0.0.1]); Thu, 04 Dec 2008 14:00:24 +0100 (CET) Cc: mcoyles@horbury.wakefield.sch.uk, freebsd-questions@freebsd.org Subject: Re: Mass find/replace... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 13:00:25 -0000 On Thu, Dec 04, 2008 at 12:52:02PM +0000, Vincent Hoffman typed: > Marc Coyles wrote: > > > > I need to do a find / replace throughout the entire of the > > /home/horbury/public_html directory... > > I've tried 'find /home/Horbury/ -type f | xargs grep -l base64_decode' > > to get a list of the files that require the operation performing, but it > > comes up with an error (xargs: unterminated quote) after a few > > results... > > > try using > > find /home/Horbury/ -type f -print0| xargs -0 grep -l base64_decode > (not certain it'll fix it but good practice anyway) Or just: grep -r base64_decode /home/Horbury Ruben