This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]