[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error while piping
From: |
Paul Jarc |
Subject: |
Re: Error while piping |
Date: |
Thu, 14 Mar 2002 16:11:06 -0500 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) |
"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