shell中的几个特殊变量
来源:互联网 发布:域名状态查询 编辑:程序博客网 时间:2024/04/29 07:27
echo $? 上个进程执行结束后,返回给父进程的code
$0 脚本的名称,绝对路径 + 脚本名,即/ccc/xxx/yyy/hello.sh
$1..$n 传入到脚本中的参数
$# 代表参数个数,即上面的n
$? shell中,最后运行的命令的返回码(exit code)
$$ shell本身的pid
$@: “脚本入参1” “脚本入参2” “脚本入参3”
阅读全文
0 0
- shell中的几个特殊变量
- shell中的几个特殊变量
- shell中的几个特殊变量
- 几个特殊的shell变量
- Shell中的特殊变量
- shell中的特殊变量
- Shell中的特殊变量
- shell中的特殊变量
- shell中的特殊变量
- shell中的特殊变量
- Shell中的一些特殊变量
- shell中的一些特殊变量
- shell中的一些特殊变量
- shell中的特殊变量IFS
- linux shell中的特殊变量
- SHELL中的特殊变量和结构
- shell中的一些特殊变量 [转]
- shell脚本及makefile中的特殊变量
- SpringMVC+Spring+Mybatis+Oracle 实现HR管理(CRUD)二
- Generator函数
- jquery中关于return不能退出方法的问题
- Can not issue data manipulation statements with executeQuery().
- 坑3:1.1.2其他语言文本切分
- shell中的几个特殊变量
- C/C++与Matlab混合编程初探
- [Idea] [Eclipse] Ctrl 2 + L ----> Ctrl Alt + V
- STM32分布图
- python3 || 高斯混合模型GMM
- python语言_ if __name__=='__main__’/并行问题
- testng报错"java.net.SocketException: Software caused connection abort: socket write error"
- 调度工具rundeck安装使用
- git把本地项目push到远程仓库