2016年5月26日

摘要: http://www.2cto.com/os/201302/189655.html Linux shell的&&和|| shell 在执行某个命令的时候,会返回一个返回值,该返回值保存在 shell 变量 $? 中。当 $? == 0 时,表示执行成功;当 $? == 1 时,表示执行失败。 www 阅读全文
posted @ 2016-05-26 11:36 wonderfang 阅读(209) 评论(0) 推荐(0) 编辑
 
摘要: 转自:http://see.sl088.com/wiki/Shell_%E4%B8%AD%E6%8B%AC%E5%8F%B7 test 和 [] test -z string 判定字串是否為 0 ?若 string 為空字串,則為 truetest -n string 判定字串是否非為 0 ?若 s 阅读全文
posted @ 2016-05-26 11:26 wonderfang 阅读(985) 评论(0) 推荐(0) 编辑