高级Bash脚本编程指南/第一部分. 热身
来自Ubuntu中文
220.166.50.43(讨论)2010年3月1日 (一) 11:08的版本 (创建新页面为 '先打开一个文本编辑器,输入以下内容。 #!/bin/sh echo "hello word!,"; 然后保存成helloword.执行chmod +x helloword. 接下来执行 ./helloword. 你就...')
先打开一个文本编辑器,输入以下内容。
- !/bin/sh
echo "hello word!,";
然后保存成helloword.执行chmod +x helloword. 接下来执行 ./helloword.
你就会看到结果了。 恭喜你,你的第一个shell程序已经成功。