Re: Grep entire file system
- From: Mark Pecaut <mark@xxxxxxxxx>
- To: oracle-l@xxxxxxxxxxxxx
- Date: Thu, 12 Aug 2004 15:38:51 -0600
On Thu, Aug 12, 2004 at 02:22:19PM -0700, Rognes, Sten wrote:
>
> > 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.
>
> find . -type f -print | xargs grep sqlplus
just plain grep will do, use the '-R' flag
$ grep -R sqlplus /
man grep
GNU: http://unixhelp.ed.ac.uk/CGI/man-cgi?grep
or BSD: http://www.openbsd.org/cgi-bin/man.cgi?query=grep
Also note the --binary-files flag.
-Mark
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx
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
-----------------------------------------------------------------
- Follow-Ups:
- Re: Grep entire file system
- From: Jared . Still
- References:
- RE: Grep entire file system
- From: Rognes, Sten
Other related posts:
- » Grep entire file system
- » Re:Grep entire file system
- » RE: Grep entire file system
- » RE: Grep entire file system
- » RE: Grep entire file system
- » RE: Grep entire file system
- » Re: Grep entire file system
- » Re: Grep entire file system
- » Re:Grep entire file system
- » Re: Grep entire file system
- » RE: Grep entire file system
- » RE: Grep entire file system
- » RE: Grep entire file system
- Re: Grep entire file system
- From: Jared . Still
- RE: Grep entire file system
- From: Rognes, Sten