Programming By Stealth

PBS 150 of X – Bash Script Plumbing (Take Two)


Listen Later

When Bart and I recorded PBS 150 on Bash Script Terminal Plumbing, neither of us was happy with it. I got very confused in the middle, and Bart decided that his original strategy might have been flawed in which he assumed everyone had heard Taming the Terminal and remembered everything taught more than 4 years ago. He completely rewrote the shownotes and we re-recorded the entire episode. It was ever so much more fun and I really understood what he was teaching this time through. He also realized after we recorded that there was a bit of information he hadn't taught us which was crucial to being able to complete the challenge he had set for us. If you understood PBS 150 the first time through and want to jump right to the new part, I put a chapter mark in the audio file that will take you to where he explains `/dev/tty`.

We're proud to have done this because we are both of the same mind that we need to stay committed to the quality of what we're creating here, both for the current listeners and the future learners.

***

Bart and I took a few minutes upfront to high-five each other for 150 episodes of the Programming By Stealth Podcast. Then we quickly got to work.

Back in the Taming the Terminal podcast (at [ttt.bartificer.net/...](https://ttt.bartificer.net/), Bart taught us about stream redirection, or what he likes to call Terminal Plumbing. This was a long time ago and many folks may not have listened to that great series. Bart takes us through it again but from the perspective of writing Bash scripts that can do everything we can do in the Terminal. We learn about Standard Input (STDIN), Standard Output (STDOUT), and Standard Error (STDERR). We also learn how to bifurcate STDOUT and STDERR to produce desired results. He walks us through how to use the symbols `>`, `<`, and our friend the pipe `|` to redirect output from commands and files. I did get stuck for quite a while in a few spots here and there. Bart continues to try to convince me that if I'm confused, at least one other learner is as well, so hopefully making Bart find different ways to explain these things to help me will help you.

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

Join our Slack to talk to other Programming By Stealth learners by going to podfeet.com/slack.

...more
View all episodesView all episodes
Download on the App Store

Programming By StealthBy Bart Busschots & Allison Sheridan

  • 5
  • 5
  • 5
  • 5
  • 5

5

14 ratings


More shows like Programming By Stealth

View all
Mac Geek Gab — Apple Tips, Tricks, and Troubleshooting by Dave Hamilton, Pilot Pete & Adam Christianson

Mac Geek Gab — Apple Tips, Tricks, and Troubleshooting

829 Listeners

NosillaCast Apple Podcast by Technology with an EVER so slight Apple bias

NosillaCast Apple Podcast

158 Listeners

Wait Wait... Don't Tell Me! by NPR

Wait Wait... Don't Tell Me!

38,649 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

626 Listeners

The Joe Rogan Experience by Joe Rogan

The Joe Rogan Experience

226,088 Listeners

iOS Today (Audio) by TWiT

iOS Today (Audio)

543 Listeners

The Vergecast by The Verge

The Vergecast

3,667 Listeners

Mac Power Users by Relay

Mac Power Users

1,287 Listeners

Macworld Podcast by Foundry

Macworld Podcast

305 Listeners

AppleInsider Podcast by AppleInsider

AppleInsider Podcast

964 Listeners

Taming the Terminal by Bart Busschots & Allison Sheridan

Taming the Terminal

20 Listeners

Chit Chat Across the Pond by Allison Sheridan

Chit Chat Across the Pond

9 Listeners

The Daily by The New York Times

The Daily

111,785 Listeners

AppStories by Federico Viticci, John Voorhees

AppStories

508 Listeners

The Indicator from Planet Money by NPR

The Indicator from Planet Money

9,555 Listeners