This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: grep -r *.java doesn't work as expected
- From: "Max Bowsher" <maxb at ukf dot net>
- To: <cygwin at cygwin dot com>,"Randall R Schulz" <rrschulz at cris dot com>
- Date: Sun, 19 Jan 2003 16:34:44 -0000
- Subject: Re: grep -r *.java doesn't work as expected
- References: <200301181654.h0IGsu3O020484@proxy3.cisco.com> <5.2.0.9.2.20030119082455.02ce72e8@pop3.cris.com>
Randall R Schulz wrote:
> Grep _will_ search in files found throughout a directory hierarchy,
> but that's not it's default mode of operation. Look into the "-R" /
> "-r" / "--recursive" option and the associated "--include" and
> "--exclude" options.
I didn't know about --include/--exclude - much simpler than find and xargs!
Thanks!
> Also, I don't know what you intend by your use of "-m"
That would be "-rn", as in the contraction of "-r -n" :-)
Max Bowsher.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/