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 Reply-To: From: "Wai-Yip Tung \(wtung\)" To: Subject: grep -r *.java doesn't work as expected Date: Sun, 19 Jan 2003 07:04:34 -0800 Message-ID: <005201c2bfcc$17dd7c20$6502a8c0@amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <200301181654.h0IGsu3O020484@proxy3.cisco.com> I try to grep all .java file recursively [/q/Workflow/AppAdmin/src/com/cisco/wf/admin] $ grep -rn systemRsrc *.java LDAPConfig.java:948: ... getRemoteSubsystemRsrcMgr() TestLDAPConfig.java:58: ... getRemoteSubsystemRsrcMgr... Only files in the current directory is searched. Interesting when I use only * I search recursively. [/q/Workflow/AppAdmin/src/com/cisco/wf/admin] $ grep -rn systemRsrc * LDAPConfig.java:948: public RemoteRsrcMgr getRemoteSubsystemRsrcMgr() LDAPConfig.java.keep:928: public ... getRemoteSubsystemRsrcMgr() TestLDAPConfig.java:58: public ... getRemoteSubsystemRsrcMgr() .. iaq/LDAPIAQWebConfig.java:343: ... myLDAPConfig.getRemoteSubsystemRsrcMgr(); iaq/LDAPIAQWebConfig.java:383: ... myLDAPConfig.getRemoteSubsystemRsrcMgr(); Problem is it included some non java file. What's wrong? Wai Yip Tung -- 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/