
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 · 401 阅读 · 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 · 617 阅读 · 0 评论