How to tell grep to ignore special characters in a string (solution)
Back in the old days I thought that any pattern that was including in single-quotes with the Unix grep
command meant that the pattern inside the string was completely ignored by grep
. But these days I have to escape special characters with a backslash character, which is really annoying. This example shows what I mean: