Sometimes when piping some input to grep, I see this error come up:

$ cat something.txt | grep "some text"
-bash: $'\302\240grep': command not found

When I re-type the command, it works as expected. What could be the cause?

I'm using Finnish keyboard layout.

  • 1
    BTW you don't need to use cat for this -- just use grep "some text" something.txt. Feb 16, 2015 at 17:01

1 Answer 1


Key-combination for pipe symbol in Finnish layout is Alt Gr + the key between Z and Shift. The problem was that I didn't release Alt Gr before pressing Space after the pipe character, and that caused a non breaking space to be inserted instead of normal space.

  • It's NO-BREAK SPACE (to use the Unicode name) and it isn't really that weird. Finnish isn't the only multilingual keyboard layout where multiple characters are typeable with the spacebar. It's also the case for the German T2 layout, for example.
    – JdeBP
    Feb 16, 2015 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.