
{"id":18085,"date":"2019-05-20T14:32:55","date_gmt":"2019-05-20T14:32:55","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=18085"},"modified":"2019-05-20T14:32:55","modified_gmt":"2019-05-20T14:32:55","slug":"about-bash-builtin-command-named-test","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2019\/05\/20\/about-bash-builtin-command-named-test\/","title":{"rendered":"Fundamentals related to a  bash builtin command named &#8220;test&#8221;"},"content":{"rendered":"<p><u>ABOUT test<\/u><\/p>\n<pre>\ntest provides no output, but returns 0 for \"true\" (test successful) and 1 for \"false\" (test failed).\n<\/pre>\n<p><u>RELATED COMMAND LINE EXPOSURE<\/u><br \/>\n[bash]<br \/>\n$num=10; if (test $num -gt 5); then echo &quot;yes&quot;; else echo &quot;no&quot;; fi<br \/>\nyes<br \/>\n$num=1; if (test $num -gt 5); then echo &quot;yes&quot;; else echo &quot;no&quot;; fi<br \/>\nno<br \/>\n$num=5; if (test $num -gt 5); then echo &quot;yes&quot;; else echo &quot;no&quot;; fi<br \/>\nno<br \/>\n$<\/p>\n<p>[\/bash]<br \/>\nLINK<br \/>\n<a href=\"https:\/\/www.computerhope.com\/unix\/bash\/test.htm\">https:\/\/www.computerhope.com\/unix\/bash\/test.htm<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT test test provides no output, but returns 0 for &#8220;true&#8221; (test successful) and 1 for &#8220;false&#8221; (test failed). RELATED COMMAND LINE EXPOSURE [bash] $num=10; if (test $num -gt 5); then echo &quot;yes&quot;; else echo &quot;no&quot;; fi yes $num=1; if (test $num -gt 5); then echo &quot;yes&quot;; else echo &quot;no&quot;; fi no $num=5; if (test &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2019\/05\/20\/about-bash-builtin-command-named-test\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fundamentals related to a  bash builtin command named &#8220;test&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18275,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,8,83],"tags":[457,508,1563],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18085"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=18085"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18085\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}