cat sends its error via stderr so it won't go into the pipe (or grep). you will see the cat error on your terminal, unless you have redirected stderr to stdout
I'm pretty sure I'd be smarter if I were
cat sends its error via stderr so it won't go into the pipe (or grep). you will see the cat error on your terminal, unless you have redirected stderr to stdout