shell总结

1. shell脚本的变量赋值

变量赋值语句中的等号左右不能有空格

即 a = 4 //错误

  a=4   //正确

2. shell脚步的执行需要权限

chmod +x shell.sh

./shell.sh //执行shell脚本

posted @ 2017-05-15 00:09  全玉  阅读(147)  评论(0编辑  收藏  举报