摘要: (命令列第一个参数) $1 如果只等如X, 那就是变量没有内容,是空变量, 也是用来测试命令列上有没有参数,例如user@minix-nb:~$ cat a#! /bin/bashif [ X$1 = X ] then echo "the first argu is empty" else echo "the first argu is $1"fiuser@minix-nb:~$ ./athe first argu is emptyuser@minix-nb:~$ ./a 123the first argu is 123user@minix-nb:~$ 阅读全文
posted @ 2012-09-19 18:09 google4y 阅读(1482) 评论(0) 推荐(0) 编辑
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂