
{"id":18159,"date":"2019-07-16T22:13:56","date_gmt":"2019-07-16T22:13:56","guid":{"rendered":"http:\/\/beautifulwork.org\/?p=18159"},"modified":"2019-07-16T22:13:56","modified_gmt":"2019-07-16T22:13:56","slug":"a-look-into-the-bash-builtin-command-named-until","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2019\/07\/16\/a-look-into-the-bash-builtin-command-named-until\/","title":{"rendered":"A look into the bash builtin command named   &#8220;until&#8221;"},"content":{"rendered":"<p><u>ABOUT until<\/u><\/p>\n<pre>\nuntil command in Linux used to execute a set of commands as long as the final command in the \u2018until\u2019\nCommands has an exit status which is not zero. It is mostly used where the user needs to execute a set of\ncommands until a condition is true.\n<\/pre>\n<p><u>A TYPICAL SHELL EXPOSURE<\/u><br \/>\n[bash]<br \/>\n$i=0 ; until ((i &gt; 5)) ; do echo $i; ((i = $i +1)) ; done<br \/>\n0<br \/>\n1<br \/>\n2<br \/>\n3<br \/>\n4<br \/>\n5<br \/>\n$i=0 ; until ((i &gt; 5)) ; do echo $i; ((i++)) ; done<br \/>\n0<br \/>\n1<br \/>\n2<br \/>\n3<br \/>\n4<br \/>\n5<br \/>\n$i=0 ; until ((i &gt; 1)) ; do echo $i; ((i++)) ; done<br \/>\n0<br \/>\n1<br \/>\n$i=0 ; until ((i &gt; 5)) ; do echo $?; ((i++)) ; done<br \/>\n1<br \/>\n1<br \/>\n1<br \/>\n1<br \/>\n1<br \/>\n1<br \/>\n$ <\/p>\n<p>[\/bash]<br \/>\nLINKS<br \/>\n<a href=\"https:\/\/www.geeksforgeeks.org\/until-command-in-linux-with-examples\/\">https:\/\/www.geeksforgeeks.org\/until-command-in-linux-with-examples\/<\/a><br \/>\n<a href=\"http:\/\/tldp.org\/LDP\/Bash-Beginners-Guide\/html\/sect_09_03.html\">http:\/\/tldp.org\/LDP\/Bash-Beginners-Guide\/html\/sect_09_03.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT until until command in Linux used to execute a set of commands as long as the final command in the \u2018until\u2019 Commands has an exit status which is not zero. It is mostly used where the user needs to execute a set of commands until a condition is true. A TYPICAL SHELL EXPOSURE [bash] &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2019\/07\/16\/a-look-into-the-bash-builtin-command-named-until\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A look into the bash builtin command named   &#8220;until&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18254,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,8],"tags":[677,684,1074,1627],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18159"}],"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=18159"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18159\/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=18159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}