shell conditional testing
Writing about web page http://www.oracle.com/technology/pub/articles/dulaney_test.html
I keep on forgeting the syntax of bash shell condition syntax. So i have to write it down now.
[ condition ] :
note the space between each side the condition when using square brackets.
=, !=, -z (string is null), -n (not null)
-eq, -ne, -gt, -lt, le,ge
[ "$number" -eq "10"] or [ $number -gt 30 ]
"0" means true
"1" means false