![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
karen121l
这个作者很懒,什么都没留下…
展开
-
在shell中如何判断一个变量是否为空
判断一个脚本中的变量是否为空,我写了一个这样的shell脚本:#!/bin/sh #filename: test.sh para1=if [ ! -n $para1 ]; then echo "IS NULL"else echo "NOT NULL"fi 然后把该脚本:test.sh通过chmod +x 改为可以执行的脚本,执行后输出的结果为: NOT NULL,很是奇转载 2012-02-24 11:05:07 · 365 阅读 · 0 评论 -
The Interrupt handling in Korn shell and C Shell
1.Interrupt handling in KSH2.Interrupt handling in CSH1.Interrupt handling in KSH The interrupt handling in Korn shell programs is done using trap command.TRAPThe programs in gener转载 2012-02-24 10:32:20 · 572 阅读 · 0 评论