Shell scripting: -z and -n options with if - Unix & Linux Stack Exchange
-n string is not null.
-z string is null, that is, has zero length
file がなければ〜
if [ -z $file ]; then
:
の逆はこう
if [ -n $file ]; then
:
Shell scripting: -z and -n options with if - Unix & Linux Stack Exchange
-n string is not null.
-z string is null, that is, has zero length
file がなければ〜
if [ -z $file ]; then
:
の逆はこう
if [ -n $file ]; then
: