1. shell脚本的变量赋值

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

即 a = 4 //错误

  a=4   //正确

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

chmod +x shell.sh

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

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2021-04-15
  • 2021-12-04
  • 2021-06-15
  • 2021-08-09
  • 2022-01-01
猜你喜欢
  • 2021-11-22
  • 2022-12-23
  • 2021-06-10
  • 2021-05-16
  • 2021-08-28
  • 2021-10-19
相关资源
相似解决方案