I've added the my cygwin\bin path to Path already but when I type in zgrep in cmd line, it says "zgrep is not recognized as an internal or external command..."

But when I do it within the cygwin cmdline, it works.

Any assistance would be appreciated.

link|improve this question
feedback

migrated from stackoverflow.com Nov 25 '11 at 15:57

This question came from our site for professional and enthusiast programmers.

2 Answers

zgrep is a Unix shell script, rather than an executable. Cygwin's bash shell knows how to run it, but Windows' cmd.exe doesn't. Hence you need to tell cmd.exe to invoke it through bash, like so: bash zgrep.

link|improve this answer
feedback

If you have bash.exe in your path, you can type bash.exe /path/to/zgrep as zgrep is actually a shell script that needs a shell interpreter.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown