
{"id":18277,"date":"2019-11-09T17:19:47","date_gmt":"2019-11-09T17:19:47","guid":{"rendered":"http:\/\/beautifulwork.org\/?p=18277"},"modified":"2019-11-09T17:19:47","modified_gmt":"2019-11-09T17:19:47","slug":"fundamental-related-of-a-bash-builtin-command-named-if","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2019\/11\/09\/fundamental-related-of-a-bash-builtin-command-named-if\/","title":{"rendered":"Fundamental related of a bash builtin command named &#8220;if&#8221;"},"content":{"rendered":"<p><u>ABOUT if<\/u><\/p>\n<pre>\nConditionals have many forms. The most basic form is: if expression then statement where\n'statement' is only executed if 'expression' evaluates to true. '21' evaluates to true.xs\n<\/pre>\n<p><u>TYPICAL SHELL EXPOSURE<\/u><br \/>\n[bash]<br \/>\n$if true; then echo &quot;works&quot; ; fi<br \/>\nworks<br \/>\n$if false; then echo &quot;works&quot; ; fi<br \/>\n$<br \/>\n[\/bash]<\/p>\n<p>LINK<br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/16034749\/if-elif-else-statement-issues-in-bash\">https:\/\/stackoverflow.com\/questions\/16034749\/if-elif-else-statement-issues-in-bash<\/a><br \/>\n<a href=\"http:\/\/tldp.org\/HOWTO\/Bash-Prog-Intro-HOWTO-6.html\">http:\/\/tldp.org\/HOWTO\/Bash-Prog-Intro-HOWTO-6.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT if Conditionals have many forms. The most basic form is: if expression then statement where &#8216;statement&#8217; is only executed if &#8216;expression&#8217; evaluates to true. &#8217;21&#8217; evaluates to true.xs TYPICAL SHELL EXPOSURE [bash] $if true; then echo &quot;works&quot; ; fi works $if false; then echo &quot;works&quot; ; fi $ [\/bash] LINK https:\/\/stackoverflow.com\/questions\/16034749\/if-elif-else-statement-issues-in-bash http:\/\/tldp.org\/HOWTO\/Bash-Prog-Intro-HOWTO-6.html<\/p>\n","protected":false},"author":1,"featured_media":18282,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,8],"tags":[459,923],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18277"}],"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=18277"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18277\/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=18277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}