9

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

1
  • 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
    Commented Jan 15, 2013 at 7:15

7 Answers 7

3

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.

0
2

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.

0

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

0

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.

0

I use the Search function of Directory Opus.

0

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

Hope it helps!

1
  • 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
    Commented Jan 15, 2013 at 7:10
0

I use BareGrep from baremetalsoft.com.

(I also use BareTail a lot)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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