conditional-operator
Bash -n string test
True if the string has nonzero length.
Formal Syntax & Structure
bash syntaxbash
[ -n string ]Return Value
exit status
True if the string has nonzero length.
Working Example
Example Snippetbash
[ -n 'daily report' ]printf '%s\n' "$?"