Bash, jeśli null lub pusty
if [ -z "$variable" ];
then echo "$variable is null";
else echo "$variable is not null";
fi
No Name Pro
if [ -z "$variable" ];
then echo "$variable is null";
else echo "$variable is not null";
fi
unset IFS #space, tab, newline
IFS=' ' #space only
IFS= #null
IFS='' #null
IFS=$'\0' #null
if [[ -n "$list_Data" ]]
then
echo "not Empty"
else
echo "empty"
fi