str1="Niepusty "

str2=""


if [[ -n $str1 ]] && [[ -z $str2 ]];


then


 echo Łańcuch str1 nie jest pusty, a łańcuch str2 jest pusty.

fi
