摘要: Shell编程学习笔记条件判断1)-n:字符串不为null时为trueif [ -n "$str" ]; then echo "not null"fi2)-z:字符串为null或空字符串时为trueif [ -z "$str" ]; then echo "null or empty string"fi3)-f:文件存在时返回trueif [ -f "$temp_file" ]; then echo "File exists"fi特殊意义的符号1. $$:Shell scrip 阅读全文
posted @ 2013-11-19 18:01 StrikeW 阅读(205) 评论(0) 推荐(0) 编辑