Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

We're looking for a Windows based tool to help us grep our apache & JBoss logs.

We have access to the unix boxes & are generally comfortable with the grep command, but because we don't use it often enough the knowledge takes a while to come back to hand.

Also, the structure of the team is changing from experienced contractors to graduate permies - We are having continued training sessions in unix & some of the basic commands, but the team is most definitely more comfortable in a windows GUI environment.

I've found this question over on stack overflow which has proved useful: What are good grep tool for Windows? [closed].

Big guns to come out of that question include Cygwin, grepWin & PowerGrep.

Has anybody got any other suggestions that I might be missing please?

Cheers,

Duncs

share|improve this question
    
Just to clarify, Cygwin is not tool, but an emulator of Unix environment under Windows (quite heavy in terms of space), that brings Unix command line tools. –  dzieciou Jan 15 '13 at 7:15

7 Answers 7

Do you just want to grep for the fun of it, or do you have specific types of tasks you want to accomplish?

I end up using findstr.exe (built-in) for everything. Occassionally, I miss not having a better tool, but it works for me, and I bet I use it at least a dozen times a day.

share|improve this answer

GNU Utils for Windows seems to be the answer.

It is not just grep. It's a full-featured set of command-line utilities, including:

C:\SYSTEM>ls |grep "grep\|sed"
agrep.exe
egrep.exe
fgrep.exe
grep.exe
sed.exe

The main advantage of having native tools is compatibility; at any moment, you are ready to migrate your scripts to a *nix platforms with low effort.

I'm having them in a special directory where the system PATH variable points to.

The only disadvantage is that the native grep does not support Microsoft's regular expressions syntax.

share|improve this answer
    
+1 for giving examples and describing pros/cons. –  dzieciou Jan 15 '13 at 12:52

I had once come across GrepWin which was enough for my requirement. You can have a look.

share|improve this answer

I prefer Windows Grep. Besides searching it can do replacing and runs on most versions of windows like Windows 98, 2000, XP, Vista and Windows 7. There are a number of options out there.

share|improve this answer

I use the Search function of Directory Opus.

share|improve this answer

We threw Fastvue Log Grep Utility together to grep W3C text logs while retaining log headers and structure.

Hope it helps!

share|improve this answer
1  
Welcome to SQA, Scott. Why have you developed a new tool if there are other tools? What do you mean by "retaining log headers and structure"? Is in an advantage? How? –  dzieciou Jan 15 '13 at 7:10

I use BareGrep from baremetalsoft.com.

(I also use BareTail a lot)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.