This question already has an answer here:
- Find all files with a Python Shebang 2 answers
How can I grep for a given string in all files in the current directory, and recursively so, only considering the first line? (the #! line, if present, but only if #! is in the -first- line)?