From 89c34e43479ec413d10e0857c54ce192af41367c Mon Sep 17 00:00:00 2001 From: onceupon Date: Wed, 19 Dec 2018 17:59:27 +0800 Subject: [PATCH] add if loop --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ad403c9..dddc59b 100644 --- a/README.md +++ b/README.md @@ -899,6 +899,10 @@ else echo >&2 "Fatal error. This script requires mydir." fi +# if variable is null +if [ ! -s "myvariable" ] +#True of the length if "STRING" is zero. + # Test if file exist if [ -e 'filename' ] then