Suddenly, grep has begun failing.
cat test.txt | grep hello
generates an "Illegal instruction" error. It makes no difference what's being piped in nor what PATTERN I use.
- cat test.txt | less
- grep
- grep -V
- grep --help
all work fine
I've done a update and upgrade. How do I fix this?
cat test.txt | less grep
that won't run - so, what is the output ofgrep -V
- also which Rpi do you have. I have no issue with grep in Rpi3/4 - but I've had issues with other programs in RPi1 with illegal instruction error that doesn't occur in Rpi3/4cat test.txt | less grep
is the command which doesn't work, andcat test.txt | grep hello
is one of the ones which "work fine"?grep hello test.txt
.