Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do i use windows to find a string pattern in one of my .java files?

 
Ana Suvari
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since I can't use Jcreator or Eclipse, I am wondering how i can get rid of some debug statements i left in my .java files. I know i can use Notepad but how do i search all my files containing debug statements?

Is there a command in DOS windows to search for patterns in a bunch of .java files???

Please help me.
 
Paul Clapham
Sheriff
Pie
Posts: 20945
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start Windows Explorer and use the Search button. You can't use complex patterns but you can certainly search for the word "debug" in your source code.
 
Henry Wong
author
Marshal
Pie
Posts: 20989
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The UNIX tool that does this is called ... grep, which windows doesn't seem to have. However, grep seems to be so popular that if you google "grep windows", you get a ton of tools that claim to do what grep does, except on windows. Maybe one of those grep-like tools might work.

Henry
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I always install Cygwin on any Windows machine I'm forced to use. It has grep, along with a bunch of other stuff that you may or may not find useful.
 
Campbell Ritchie
Sheriff
Posts: 48635
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about one of the decent text editors, eg jEdit, Notepad++, Notepad2, which all work on Windows and (I think) will have decent search facilities?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic