Dica 26 - Rodando Python dentro do Shell script

Leia mais em:

Grande Portal - Shell script 1

Grande Portal - Shell script 2

Grande Portal - Shell script 3

Assista também:

Mini-curso Shell script 1

Mini-curso Shell script 2

Exemplo 1:

# running_python01.sh
python -c "print('Rodando Python dentro do Shell script')"
$ source running_python01.sh

Ou

$ chmod +x running_python01.sh
$ ./running_python01.sh

Exemplo 2:

Exemplo 3:

Exemplo 4: Não está no video.

https://www.geeksforgeeks.org/program-for-nth-fibonacci-number/

Last updated

Was this helpful?