"Bjorn Waller" <bjornwaller@email.com> wrote:
> For instance: 'ps -ef | grep foo' often (but not always) results in:
> bash: grep: command not found
^^
There are two spaces here, where there ought to be only one. I also
note that "\" and "|" are on the same key on my keyboard. I'm
guessing you're accidentally typing "ps -ef |\ grep foo". So bash is
trying to run a command called " grep", which doesn't exist. I guess
the error message would be clearer if the command name were enclosed
in quotes.
If this is not the case, check the value of $PATH and the output of
"which grep" the next time this problem occurs.
paul