>grep -R "error" logs
Why is error in quotes?
Why is error in quotes?
Still, I may be a little anal about this but I align with this. I quote everything in bash. In this case I would do single quotes as it's a literal. You never know when someone with lesser bash knowledge will modify your script and put a variable in there. Shell expansions are nothing but footguns everywhere. Proper quoting hygiene and `--` goes a long way
...but then you read the author's response about not having actually made this themselves and your head canon implodes