anonymous wrote: > Details: > > When doing the following: > > echo '\"\"' > somefile > cat somefile > grep '\"\"' somefile > > Grep fails to give the expected output of 1:\"\", and instead gives nothing > and returns with exit code 1. This seems to happen with any string with \" > more than once in it.
If you want to look for a literal \, you have to escape it in the regular expression. $ echo '\"\"' > somefile $ cat somefile \"\" $ grep '\\"\\"' somefile \"\" -- D.
