This is the mail archive of the
mailing list for the Cygwin project.
Using grep from within a .cmd or .bat file in Windows
- From: Tzuriel <tzuriel dot kastel at med dot ge dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 31 Jan 2006 15:53:55 +0000 (UTC)
- Subject: Using grep from within a .cmd or .bat file in Windows
You folks were so helpful with my first question,
I hope you can help me now also!
I am writing a .cmd script in Windows (same behavior in XP and Server 2003)
and instead of grep executing the search, it is just
printing to standard input the command in the .cmd.
For example the lines:
inside a file called grep.cmd,
results in the line "grep --help" printing infinitely
to the command window instead of the help text being displayed.
Any variation of this results in the same thing.
Whenever grep is used, it just prints the text following the grep
infinitely to the command window.
What do I need to add to the script to get
this to act like it would if I typed
it in the command window manually?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html