I need to expand the shell script (bash). Since I am much more familiar with python, I want to do this by writing a few lines of python code, which depends on the variables from the shell script. Adding an additional python file is not an option.
result=`python -c "import stuff; print('all $code in one very long line')"`
not readable.
I would prefer to specify my python code as a multi-line string and then execute it.
source
share