怎样判断变量是否为空 - Shell - ChinaUnix.net -
#!/bin/basha="zzz"if [[ "$a" = "" ]]thenecho $a emptyelseecho $a no emptyfi