Programming By Stealth
PBS 144 – Basic Shell Script IO

PBS 144 – Basic Shell Script IO

Programming By Stealth

43:09

About this episode

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’t learn how to accept any kind of input.

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.

This knowledge will come into play when we learn next time about how to do conditionals and loops. It’s a short episode, and as Bart says, “not a heavy lift.”

You can find Bart’s fabulous tutorial shownotes at pbs.bartificer.net.

Read an unedited, auto-generated transcript: CCATP_2023_02_04 (https://podfeet.com/transcripts/CCATP_2023_02_04.html)

More from Programming By Stealth

In this week's installment of Programming By Stealth, Bart wraps up his Jekyll on GitHub miniseries as he explains how to use data files, control permalinks, and set defaults in our front matter. At t…

1h 10m

In our penultimate installment of the Jekyll miniseries, Bart teaches about collections. They're a bit difficult to explain briefly because collections can be whatever you want them to be. To illustra…

1h 8m

Bart continues us on our journey to use Jekyll with GitHub Pages to make a proper website. Most proper websites these days include a blog, so that's what he tackles this week. With a few for loops, a…

1h 4m

We dust off our memory from where we left off learning about Jekyll back in PBS 181 in June of last year. After some housekeeping, Bart takes us through the challenge solution from PBS 181, and then t…

1h 14m