Grep’s “Invalid range end” — bug or feature?
This is because you are using the hyphen within other characters, so that grep understands it as a range, which happens to be invalid. You are basically doing grep “[\-‘]” file This is interpreted by grep as you providing a range of characters to be checked on, like for example grep “[a-z]” file. But the … Read more