{"id":27769,"date":"2023-02-04T16:10:08","date_gmt":"2023-02-05T00:10:08","guid":{"rendered":"https:\/\/www.podfeet.com\/blog\/?p=27769"},"modified":"2023-02-04T16:10:08","modified_gmt":"2023-02-05T00:10:08","slug":"ccatp-758","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2023\/02\/ccatp-758\/","title":{"rendered":"CCATP #758 \u2013 Bart Busschots on Programming By Stealth 144"},"content":{"rendered":"<p>This week our guest is Bart Busschots with Programming By Stealth 144. When last we recorded, Bart started teaching us the basics of shell scripting using Bash. We learned how to collect terminal commands into a reusable shell script, but we didn&#8217;t learn how to accept any kind of input.<\/p>\n<p>In this installment, we learn how to take inputs either from the execution of the command or from user input and how variable names are created for the different ways of receiving input.  We also learn about Exit Codes, which are really error codes, and how they can be used in boolean logic.<\/p>\n<p>This knowledge will come into play when we learn next time about how to do conditionals and loops.  It&#8217;s a short episode, and as Bart says, &#8220;not a heavy lift.&#8221;<\/p>\n<audio class=\"wp-audio-shortcode\" id=\"audio-27769-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2023_02_04.mp3?_=1\" \/><a href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2023_02_04.mp3\">https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2023_02_04.mp3<\/a><\/audio>\n<p><a title=\"mp3 download\" href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2023_02_04.mp3\" target=\"_blank\" rel=\"noopener noreferrer\">mp3 download<\/a><\/p>\n<p>You can find Bart&#8217;s fabulous tutorial shownotes at <a href=\"https:\/\/pbs.bartificer.net\/pbs144\">pbs.bartificer.net<\/a>.<\/p>\n<p>Read an unedited, auto-generated transcript:  <a href=\"https:\/\/podfeet.com\/transcripts\/CCATP_2023_02_04.html\">CCATP_2023_02_04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week our guest is Bart Busschots with Programming By Stealth 144. When last we recorded, Bart started teaching us the basics of shell scripting using Bash. We learned how to collect terminal commands into a reusable shell script, but we didn&#8217;t learn how to accept any kind of input. In this installment, we learn [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[147,172,213],"tags":[2008,5675,5678,5677,5676,177,176,240,1033],"class_list":["post-27769","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-posts","category-ccatp","category-programming-by-stealth","tag-bash","tag-bash-script","tag-boolean-logic","tag-error-codes","tag-exit-codes","tag-pbs","tag-programming","tag-programming-by-stealth","tag-shell-script"],"jetpack_featured_media_url":"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/08\/PBS_Logo-1-300x300_no_alpha.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/27769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=27769"}],"version-history":[{"count":2,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/27769\/revisions"}],"predecessor-version":[{"id":27771,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/27769\/revisions\/27771"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media\/18994"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=27769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=27769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=27769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}