Check if string length is zero

Returns an exit code of 0 if the length of the string is zero.

Authored by: Sidratul Muntaha
Brought to you by Warp, a free terminal reimagined to work like a modern app.
string

Command
Copy
[[ -n string ]]
Tags