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: Powell, Mark D <mark.powell_at_eds.com>
Date: Fri, 13 Aug 2004 08:44:23 -0400
Message-ID: <564DE4477544D411AD2C00508BDF0B6A2133DE6D@usahm018.exmi01.exch.eds.com>

The "-R" option does not exist in many versions of grep such as that which is provided with AIX 5.2

Jared, your version of the command is indeed an order of magnitude faster than using the -exec option of find

With the often minor but sometimes annoying differences in the standard UNIX utilities on different platforms it is good to know multiple command patterns to accomplish the same task. In a multiple platform shop you never know when you might have to tweak a script to get the same results.

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Jared.Still_at_radisys.com
Sent: Thursday, August 12, 2004 5:51 PM
To: oracle-l_at_freelists.org
Subject: Re: Grep entire file system

oracle-l-bounce_at_freelists.org wrote on 08/12/2004 02:38:51 PM:
> > find . -type f -print | xargs grep sqlplus
>
> just plain grep will do, use the '-R' flag
>
> $ grep -R sqlplus /
>

kudos!

even better than xargs

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
-----------------------------------------------------------------
----------------------------------------------------------------
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 Fri Aug 13 2004 - 07:41:20 CDT

Original text of this message

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