首页 > 系统服务 > 详细

Linux Batch

时间:2014-03-25 07:27:42      阅读:669      评论:0      收藏:0      [点我收藏+]

$0 is the name of the script itself, $1 is the first argument, $2 the second, $3 the third, and so forth.
[27] After $9, the arguments must be enclosed in brackets, for example, ${10}, ${11}, ${12}.

The special variables $* and $@ denote all the positional parameters.

The shift command reassigns the positional parameters, in effect shifting them to the left one notch.
$1 <--- $2, $2 <--- $3, $3 <--- $4, etc.

  表 1. 一些常见的文件测试

操作符 特征
-d 目录
-e 存在(也可以用 -a)
-f 普通文件
-h 符号连接(也可以用 -L)
-p 命名管道
-r 可读
-s 非空
-S 套接字
-w 可写
-N 从上次读取之后已经做过修改

Linux Batch,布布扣,bubuko.com

Linux Batch

原文:http://www.cnblogs.com/peng-fei/p/3622230.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!