Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> 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 - 16:46:58 CDT
![]() |
![]() |