General Question

knight's avatar

Batch grep

Asked by knight (35points) March 19th, 2008

Hi,

How can I do something similar to grep in batch file?

Observing members: 0 Composing members: 0

5 Answers

Brunty's avatar

Are you talking about a bash script or a windows batch file?
With a bash script, it doesn’t do anything majorly fancy, it can just make doing a series of repeated commands easier.

bpeoples's avatar

Check out cygwin: http://www.cygwin.com/

It is likely the toolkit you are looking for.

Then you can write bash scripts rather than batch files… =)

knight's avatar

I want to know if it’s possible to do grep in windows batch file. If not I will just install python. It will make it easier.

bpeoples's avatar

@Knight:

It’s possible to use grep in a windows batch file, since you can install a cygwin or gnu implementation of grep, however windows piping is pretty broken, so it may not work out so well.

I’d just install python and go from there.

knight's avatar

ok, thanks!

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther