grep -r *.java doesn't work as expected

Max Bowsher maxb@ukf.net
Sun Jan 19 17:53:00 GMT 2003


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/



More information about the Cygwin mailing list