Now I want to find whether there are lines containing \'\\\' character. I tried grep \"\\\\\" XXFile but it hints \"Trailing Backslash\". But when I tried gre
This has two pairs of backslashes which bash will convert to two single backslashes. This new pair will then be passed to grep as an escaped backslash getting you what you want.