Automation 如何自动使用sh脚本

Automation 如何自动使用sh脚本,automation,sh,turbogears2,Automation,Sh,Turbogears2,我是sh脚本的初学者,我需要一些帮助,有人能帮我将从Turbogears页面提取的命令行转换为sh脚本吗,提前谢谢 $ virtualenv --no-site-packages tg2env $ cd tg2env/ $ source bin/activate (tg2env)$ pip install tg.devtools 使用编辑器创建一个包含这些内容的文件(假设它名为my_first_script.sh): 然后从命令行执行此命令,使其可执行: chmod 755 my_first_

我是sh脚本的初学者,我需要一些帮助,有人能帮我将从Turbogears页面提取的命令行转换为sh脚本吗,提前谢谢

$ virtualenv --no-site-packages tg2env
$ cd tg2env/
$ source bin/activate
(tg2env)$ pip install tg.devtools

使用编辑器创建一个包含这些内容的文件(假设它名为
my_first_script.sh
):

然后从命令行执行此命令,使其可执行:

chmod 755 my_first_script.sh

使用编辑器创建一个包含这些内容的文件(假设它名为
my_first_script.sh
):

然后从命令行执行此命令,使其可执行:

chmod 755 my_first_script.sh