Bash shell finds out if a variable has a NULL value OR not
In the Bash shell, you can use the -z option to check if a variable has a null (empty) value or not. Here's an example:
if [ -z "$my_var" ]; then
echo "my_var is null or empty"
else
echo "my_var is not null or empty"
fi
In the above example, $my...
yesicbap.hashnode.dev1 min read