Skip to content

Tag: shell

Problem with running shell script echo in Python

I am trying to run this shell script in Python: So in Python3 I do this: So I expect when I run the python code on Linux or Unix I get: But instead I get: What am I doing wrong? Answer There are two problem with this: This is not how you set a variable in a shell. Instead, the