8 Jul
2022
8 Jul
'22
4:26 a.m.
Mark Sapiro writes:
On 7/7/22 3:09 PM, David Newman wrote:
I *think* the command runs if I escape the hyphen:
Yes, escaping the hyphen is the correct thing to do. You could also try something like
grep -r '.-jango' /opt/mailman/venv/lib/python3.9/site-packages/
grep -r -e -jango ...
should also work (and return nothing in this case). -e can be used multiple times, effectively or-ing the regexps. (Especially useful with -F if you have a lot of regexp operators in fixed strings!)