shell 编程(一)

变量跟引用

shell 的执行方式(三种)

1
2
3
4
5
6
7
8
9
//shell 解释器执行
> /bin/bash a.sh

// 赋给文件执行权限 直接执行
>chmod +x ./a.sh
> ./a.sh

//source命令执行 在当前的bash 进程执行
> source ./a.sh

##

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

请我喝杯咖啡吧~