How do i use windows to find a string pattern in one of my .java files?
Ana Suvari
Ranch Hand
Joined: Aug 18, 2009
Posts: 43
posted
0
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???
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.
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.
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
Joined: Oct 13, 2005
Posts: 32599
4
posted
0
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?