Shell中$0, $?, $!等
来源:互联网 发布:js select 选中值 编辑:程序博客网 时间:2024/05/20 06:50
1 $$
shell本身的PID
2 $!
shell最后运行的后台PID
3 $?
最后运行的命令返回的结束代码(0表示正常,其他表示异常)
4 $*
传给shell脚本的所有参数的列表,若$*用"括起来,以"$1 $2 ... $n"形式输出所有参数
5 $@
传给shell脚本的所有参数的列表,若$@用"括起来,以"$1" "$2" ... "$n"形式输出所有参数
6 $#
传给shell脚本的参数个数
7 $0
shell脚本本身的文件名
8 $1 ~ $n
传给shell脚本的各个参数值,如$1表示第一个参数
阅读全文
0 0
- Shell中$0, $?, $!等
- shell脚本中$#、$0、$@等含义
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?,$!等的特殊用法
- shell中$0,$?等的用法
- shell中$0,$?,$!等的特殊用法
- Shell中$0,$?,$!等的特殊用法
- 记Dorado7学习(3)
- 【 hdoj 4240】 Route Redundancy 【dinic+spfa】
- 游戏运维的最佳实践:搜狐畅游自动化运维之旅!
- java Collections.sort()实现List排序的默认方法和自定义方法
- Duilib支持自绘tooltip
- Shell中$0, $?, $!等
- 动态规划中级教程(leetcode)152.Maximum Product Subarray
- AbstractQueuedSynchronizer
- UVa 11588
- Angular细节说明
- 分布式系统的故障治理
- CAD编辑指南3:PDF转CAD以及转换后的编辑
- [US Giants] 三. Binary Search
- 网络安全技术概述