a:2:{s:7:"current";a:7:{s:5:"title";s:34:"Bash test and comparison functions";s:11:"description";a:2:{s:15:"tableofcontents";a:7:{i:0;a:4:{s:3:"hid";s:34:"bash_test_and_comparison_functions";s:5:"title";s:34:"Bash test and comparison functions";s:4:"type";s:2:"ul";s:5:"level";i:1;}i:1;a:4:{s:3:"hid";s:31:"demystify_test_and_if-then-else";s:5:"title";s:43:"Demystify test, [, [[, ((, and if-then-else";s:4:"type";s:2:"ul";s:5:"level";i:2;}i:2;a:4:{s:3:"hid";s:5:"tests";s:5:"title";s:5:"Tests";s:4:"type";s:2:"ul";s:5:"level";i:2;}i:3;a:4:{s:3:"hid";s:8:"test_and";s:5:"title";s:10:"test and [";s:4:"type";s:2:"ul";s:5:"level";i:3;}i:4;a:4:{s:3:"hid";s:3:"and";s:5:"title";s:9:"(( and [[";s:4:"type";s:2:"ul";s:5:"level";i:3;}i:5;a:4:{s:3:"hid";s:12:"conditionals";s:5:"title";s:12:"Conditionals";s:4:"type";s:2:"ul";s:5:"level";i:2;}i:6;a:4:{s:3:"hid";s:23:"if_then_else_statements";s:5:"title";s:25:"If, then, else statements";s:4:"type";s:2:"ul";s:5:"level";i:3;}}s:8:"abstract";s:305:"Demystify test, [, [[, ((, and if-then-else


Are you confused by the plethora of testing and comparison options in the Bash shell? This tip helps you demystify the various types of file, arithmetic, and string tests so you will always know when to use test, [ ], [[ ]], (( )), or if-then-else constructs.";}s:8:"internal";a:2:{s:5:"cache";b:1;s:3:"toc";b:1;}s:4:"date";a:2:{s:7:"created";i:1172263174;s:8:"modified";i:1172266260;}s:7:"creator";s:6:"Thomas";s:11:"contributor";a:1:{s:7:"domingo";s:6:"Thomas";}s:11:"last_change";a:7:{s:4:"date";i:1172266260;s:2:"ip";s:14:"172.30.255.189";s:4:"type";s:1:"E";s:2:"id";s:21:"howtos:bash-scripting";s:4:"user";s:7:"domingo";s:3:"sum";s:0:"";s:5:"extra";s:0:"";}}s:10:"persistent";a:4:{s:4:"date";a:2:{s:7:"created";i:1172263174;s:8:"modified";i:1172266260;}s:7:"creator";s:6:"Thomas";s:11:"contributor";a:1:{s:7:"domingo";s:6:"Thomas";}s:11:"last_change";a:7:{s:4:"date";i:1172266260;s:2:"ip";s:14:"172.30.255.189";s:4:"type";s:1:"E";s:2:"id";s:21:"howtos:bash-scripting";s:4:"user";s:7:"domingo";s:3:"sum";s:0:"";s:5:"extra";s:0:"";}}}