-n string: True if the length of string is non-zero. -z string: True if the length of string is zero. 转载请注明:skelchina.com » bash中判断是否为空 是否有值 是否存在… -z -n -e -f -d 喜欢 (4)