Use / usr / bin / env

Em qualquer script (shell, perl, python, etc …), ele começa com uma linha ‘she-bang’. Normalmente, usamos algo assim:

#!/bin/bash                      # for shell script
#!/usr/bin/python # for python

Podemos usar / usr / bin / env em seu lugar! Isso lhe dará mais flexibilidade. Bem assim:

#!/usr/bin/env python