Conditionals
You can create a one line if statement using ;
semicolons after the if
clauses.
VALUE=1
if [ $VALUE -e 1 ]; then echo "YES"; fi
You can create a one line if statement using ;
semicolons after the if
clauses.
VALUE=1
if [ $VALUE -e 1 ]; then echo "YES"; fi