• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic