Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Grep entire file system
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
-- 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
![]() |
![]() |