Batch grep
Asked by
knight (
35)
March 19th, 2008
Hi,
How can I do something similar to grep in batch file?
Observing members:
0
Composing members:
0
5 Answers
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.
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… =)
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.
@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.
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.