摘要: 1、判断字符串为空 if [ -z "$str" ]; then echo "empty string" fi 2、判断文件是否存在 if [ -f /home/builder/.profile ]; then echo "File exists;" fi 3、逻辑非 if [ ! -f /home 阅读全文
posted @ 2019-06-14 14:32 北极星0202 阅读(3825) 评论(0) 推荐(0) 编辑