From owner-freebsd-questions@FreeBSD.ORG Sun Apr 22 04:47:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE7C716A404 for ; Sun, 22 Apr 2007 04:47:13 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: from web58102.mail.re3.yahoo.com (web58102.mail.re3.yahoo.com [68.142.236.125]) by mx1.freebsd.org (Postfix) with SMTP id 910E213C45B for ; Sun, 22 Apr 2007 04:47:13 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: (qmail 40104 invoked by uid 60001); 22 Apr 2007 04:47:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ammfq22DowI1YWWNgLVy5Ydw4DiQT17e4UhWnZqCE92chTag575O2FPra379Pe1OE1bw0/1DAAU+OJVl1rNePIXeSPoWFqP18Pu+WgmvXuMmnl2SZwtWKoyq0qzqmaNL7lNbpSMd/JqxGeyVQriTpbBeRC3sLBwxarNvivpPa4Y=; X-YMail-OSG: I3bmyPEVM1loZzsFsKL.kxHW7m_OauUjy0IrO7mG.7vubBzmNFGDoNIDIR2Lvk.ZqNv5QEpdg0y0RNyJeqWVueNHvqC3W_c.J0Uo Received: from [131.191.24.2] by web58102.mail.re3.yahoo.com via HTTP; Sat, 21 Apr 2007 21:47:12 PDT Date: Sat, 21 Apr 2007 21:47:12 -0700 (PDT) From: L Goodwin To: Oliver Iberien , freebsd-questions@freebsd.org In-Reply-To: <200704150923.25792.odilist@sonic.net> MIME-Version: 1.0 Message-ID: <996620.31871.qm@web58102.mail.re3.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Grep and --exclude? or, finding a text string that might be anywhere 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: Sun, 22 Apr 2007 04:47:14 -0000 Oliver, the error is due to incorrect syntax ("-e" flag omitted). Try this: grep -R /usr -e "any2dvd" L Goodwin Oliver Iberien wrote: I need to find a reference to an obscure delete port that is in some file somewhere (in /usr/ports/? somewhere in /usr?) as it is messing up make and, among other things, preventing me from running the gnome upgrade script. So, I do what little I know to do: grep -R /usr/* "any2dvd" This brings out a few valid discoveries (mostly in mailfiles when I posted about this) and lots of "operation not supported" and "No such file or directory" errors before grep spits out a "memory exhausted" error. If I could at least stop it from looking at */tmp/* and ~/.kde it might have a chance to get somewhere, but I can't figure out how --exclude or --exclude-dir work, despite googling over and over for examples. Can this be made to work? Or is there a better way? Thanks, Oliver Previous post about the weird make error follows: On Sunday 08 April 2007 21:24, you wrote: > On Sun, Apr 08, 2007 at 09:30:14AM -0700, Oliver Iberien wrote: > > I seem to have messed something up somewhere, and peculiar instructions > > seem to have found their way in. An example is below: > > > > ---> Checking for the latest package of 'devel/gettext' > > ---> Fetching the package(s) for 'gettext-0.16.1' (devel/gettext) > > ---> Fetching gettext-0.16.1 > > /var/tmp/portupgradeJwjg3x7H/gettext-0.16.1.tb100% of 2093 kB 248 kBps > > ---> Downloaded as gettext-0.16.1.tbz > > ---> Identifying the package > > /var/tmp/portupgradeJwjg3x7H/gettext-0.16.1.tbz ---> Saved as > > /usr/ports/packages/All/gettext-0.16.1.tbz > > ---> Skipping libiconv-1.9.2_2 (already installed) > > ---> Found a package > > of 'devel/gettext': /usr/ports/packages/All/gettext-0.16.1.tbz > > (gettext-0.16.1) > > ---> Located a package version 0.16.1 > > (/usr/ports/packages/All/gettext-0.16.1.tbz) > > ---> Upgrading 'gettext-0.14.5_2' to 'gettext-0.16.1' (devel/gettext) > > using a package > > cd: can't cd to /usr/ports/multimedia/any2dvd > > "Makefile", line 54: Could not > > find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common > > make: fatal errors encountered -- cannot continue > > ^C---> Backing up the old version > > ---> Uninstalling the old version > > > > The section > > > > cd: can't cd to /usr/ports/multimedia/any2dvd > > "Makefile", line 54: Could not > > find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common > > > > appears often when installing both from packages and ports. I just stop > > it and the install continues. What could be going on here? > > Check carefully for local changes you made referring to this file (in > /usr/ports or /etc/make.conf, maybe elsewhere_. It no longer exists > in the ports tree so it is unreferenced in a standard install of it. > > Kris _______________________________________________ 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" --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.