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 grepthat 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/4 – Jaromanda X Mar 04 '20 at 02:08cat test.txt | less grepis the command which doesn't work, andcat test.txt | grep hellois one of the ones which "work fine"? – justinjt Mar 04 '20 at 03:31grep hello test.txt. – Ingo Mar 05 '20 at 19:07grepis perfectly capable of processing a file - you don't have to "feed"grepthrough apipe. Seeman grepfrom the CLI :) – Seamus Mar 05 '20 at 20:02