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

2006-01-31 Thread Tzuriel
Both perfect suggestions! Thanks for taking the time to help. > > Keith Moore wrote: > > "grep.cmd" is getting executed recursively. You > > need to name your .cmd file something other than > > "grep". Stein Somers opnet.com> writes: > Or invoke "grep.exe --help". Or if you want to experime

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

2006-01-31 Thread Stein Somers
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

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

2006-01-31 Thread Keith Moore
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". KM -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/prob

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

2006-01-31 Thread Tzuriel
Hi, 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: