Before:
grep -r --include=\*.py -E '^#!' -h | sort | uniq -c
1 #!/bin/env python 6 #! /usr/bin/env python 162 #!/usr/bin/env python 2 #! /usr/bin/env python3 16 #!/usr/bin/env python3 2 #! /usr/bin/python 49 #!/usr/bin/python
After
grep -r --include=\*.py -E '^#!' -h | sort | uniq -c
220 #!/usr/bin/env python 18 #!/usr/bin/env python3
I've kept python3 reference to capture the intent « this a py3 only script »