rambo

Shell 学习Begin

从今天起在Ubuntu12.04下学习一下Shell编程。文字编辑器用的是gedit。

 

保存为文件test.sh,然后执行 chmod +x test.sh 使其可执行,最后在terminal中输入 ./test.sh执行该脚本。其输出结果如下