Using grep from within a .cmd or .bat file in Windows

Stein Somers ssomers@opnet.com
Tue Jan 31 16:23:00 GMT 2006


Keith Moore wrote:
> Tzuriel wrote:
> 
> 
>>grep --help
>>pause
>>
>>inside a file called grep.cmd,
> 
> 
> "grep.cmd" is getting executed recursively. You
> need to name your .cmd file something other than
> "grep".

Or invoke "grep.exe --help".  Or if you want to experiment, specify the exact path to grep.  Or 
if you love to experiment, make sure grep.cmd is not in the current directory and not in any 
PATH entry, so that you have to invoke it with an explicit path.

Stein

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list