May 9, 2007

shell变量的用法

if ($?Variable) then

变量名前加个"?",判断该变量是否存在,不care变量的值,定义了即为真。

Labels:

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home