locate command with a file name returns multiple entries as,
a.py a.pyc a.py~
Obviously, i am not looking for binaries/compiled files. I tried to configure
locate command to ignore files that has pattern *.pyc, *.py~. Man page shows, locate command doesn't have globbing option.
How can one configure locate command to ignore files that match a pattern?