2015年7月27日

shell中条件判断if中的-z到-d的意思【转】

摘要: [ -a FILE ] 如果 FILE 存在则为真。[ -b FILE ] 如果 FILE 存在且是一个块特殊文件则为真。[ -c FILE ] 如果 FILE 存在且是一个字特殊文件则为真。[ -d FILE ] 如果 FILE 存在且是一个目录则为真。[ -e FILE ] 如果 FILE 存在... 阅读全文

posted @ 2015-07-27 14:11 newqzp 阅读(141) 评论(0) 推荐(0)

linux中shell变量$#,$@,$0,$1,$2的含义

摘要: printf "The complete list is %s\n" "$$" 24520 Shell本身的PIDprintf "The complete list is %s\n" "$!" 空 Shell最后运行的后台Process的PID printf "The comple... 阅读全文

posted @ 2015-07-27 14:05 newqzp 阅读(184) 评论(0) 推荐(0)

导航