I've already removed and reinstalled grep on Ubuntu but still the same error persists.
Whatever grep command I type I always see the following output:
grep: invalid option -- '='
Usage: grep [OPTION]... PATTERN [FILE]...
Try grep --help for more information.`
So even
grep -V
results in this error, or
grep --help
same thing!
/bin/grep has the same byte size as it does on my other identical hosts, where it works fine, so it's likely to be some environmental variable or local setting.
Any ideas?
grep -=. I'd suggest you to mark Jeremy's answer as the solution to the problem. – Andrea Corbellini Jan 28 at 15:47