Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <017001c2bfd8$acb88450$78d96f83@pomello> From: "Max Bowsher" To: , "Randall R Schulz" References: <200301181654 DOT h0IGsu3O020484 AT proxy3 DOT cisco DOT com> <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030119082455 DOT 02ce72e8 AT pop3 DOT cris DOT com> Subject: Re: grep -r *.java doesn't work as expected Date: Sun, 19 Jan 2003 16:34:44 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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/