几个有用的shell参数
#!/bin/bash
#变量含义
#1,$$:shell 本身的process id
printf "The value list is %s\n" "$$"
#2,$!:shell 最后运行的后台process id
printf "The value list is %s\n" "$!"
#3,$*:所有参数列表
printf "The value list is %s\n" "$*"
#4
原创
2015-08-07 10:39:50 ·
256 阅读 ·
0 评论