码迷,mamicode.com
首页 > 系统相关 > 详细

shell总结

时间:2017-05-15 10:06:47      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:chmod   赋值   变量赋值   错误   strong   权限   不能   .sh   bsp   

1. shell脚本的变量赋值

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

即 a = 4 //错误

  a=4   //正确

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

chmod +x shell.sh

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

shell总结

标签:chmod   赋值   变量赋值   错误   strong   权限   不能   .sh   bsp   

原文地址:http://www.cnblogs.com/mengff/p/6854570.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!