Bash shell find out if a variable has NULL value OR not
In Bash, you can use the -z operator to check if a variable has a NULL value or not. The -z operator returns true if the length of the string stored in the variable is zero. Here is an example: # Declare a variable myvar=”” # Check if the variable has a NULL value if … Read more