Just to be safe, the grep should be something like:
```grep -E "^ *[0-9]+:#{resource_name}[/ ]"```