Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Grep entire file system

RE: Grep entire file system

From: Jesse, Rich <Rich.Jesse_at_quadtechworld.com>
Date: Thu, 12 Aug 2004 17:24:08 -0500
Message-ID: <FBE1FCA40ECAD41180400050DA2BC54004E93C65@qtiexch2.qgraph.com>


Depending on the OS/utils version, you may wish to include a "-t" in the = xargs call, or you may not see what file it was found in.

Rich

Rich Jesse                        System/Database Administrator
rich.jesse_at_quadtechworld.com      QuadTech, Sussex, WI USA


-----Original Message-----
Sent: Thursday, August 12, 2004 4:50 PM
Subject: Re:Grep entire file system

> find ./ -type f -exec grep -i -l 'sqlplus' {} \;
> ----------------------------------------------
Friends don't let friends use -exec

This is several orders of magnitude faster:

find . -type f -print | xargs grep -i sqlplus

Jared



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Thu Aug 12 2004 - 17:19:49 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US