You can simply provide a list without quotes, it will list all the results with the file in which they are located. eg:
grep init foo.py bar.py
foo.py: def __init__(self, label, active, filter, filter_string):
foo.py: def __init__(self):
bar.py: def __init__(self, prefs, num_panes):
source
share