Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Grep entire file system
Ron,
You didn't mention O/S, so I'm assuming some unix variant.
Try this:
cd /top/level/of/directory/hierarchy/to/be/searched
find . -exec grep -l sqlplus {} \;
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Smith, Ron L.
Sent: Thursday, August 12, 2004 5:13 PM
To: oracle-l_at_freelists.org
Subject: Grep entire file system
Does anyone have a command that will grep for all files in a file system
that contain a string like "sqlplus"?
I can do it within a directory, but I want it to look at all the
directories.
Thanks!
Ron
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlput 'unsubscribe' in the subject line.
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request_at_freelists.org
![]() |
![]() |