I have a bash script which performs a certain set of functions and uses Python 3.5 for running commands within itself. I can store the output of
which python
in a variable but I need to set it in the file named .bash_profile so that I can call
python3.5 some_command
from within the bash script.
Thank you.