Answers for "if output is null bash"

0

if output is null bash

[[ -z "$my_var" ]] && echo "NULL"
[[ -z "$my_var" ]] && echo "NULL" || echo "Not NULL"
Posted by: Guest on April-08-2021

Browse Popular Code Answers by Language