1.判断字符串为空 if [ -z "$str" ]; then echo "empty string" fi 2.判断文件是否存在 if [ -f /home/builder/.profile ]; then echo "File exists;" fi 3.逻辑非 if [ ! -f /home/builder/.bash_profile ]; then echo "here!"else echo "te…
mysql text字段判断是否为空 mysql text字段为空select * from `tableName` where `textField` is null or `textField` = ''; mysql text字段不为空select * from `tableName` where `textField` is not null AND `textField` != '';…