Python: how do I read (not run) a shell script, inserting arguments along the way

后端 未结 0 1859
野趣味
野趣味 2020-12-05 02:50

I have a simple shell script script.sh:

echo "ubuntu:$1" | sudo chpasswd

I need to open the script, read it, insert th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题