个人工具

“高级Bash脚本编程指南/第一部分. 热身”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '先打开一个文本编辑器,输入以下内容。 #!/bin/sh echo "hello word!,"; 然后保存成helloword.执行chmod +x helloword. 接下来执行 ./helloword. 你就...')
(没有差异)

2010年3月1日 (一) 11:08的版本

先打开一个文本编辑器,输入以下内容。

  1. !/bin/sh

echo "hello word!,";

然后保存成helloword.执行chmod +x helloword. 接下来执行 ./helloword.

你就会看到结果了。 恭喜你,你的第一个shell程序已经成功。