I have a line of text that I'm using grep to see if the letter `d` exists. Here is an example of what is going on:

**Returns 1, this is correct:**

```
echo d file='hello world' | grep -c -w d

```

**Returns 0, this is correct:**

```
echo file='hello world' | grep -c -w d

```

**Returns 1, this is correct:**

```
echo d file='hello world d' | grep -c -w d

```

**Returns 1 -- should return 0:**

```
echo file='hello world d' | grep -c -w d

```

I need it to ignore the data inside the single quotes. Is `grep` the right tool to use here or is there something else that might help?