Do you really know Bash?

Опубликовано: 19 Июнь 2024
на канале: glich.stream
1,776
84

These are 11 tips that will take your Bash scripts to the next level. In this deep dive, I explain to you 11 patterns that I use in all the scripts I write in Bash.

▬▬▬▬▬▬ Resources & References 📕 ▬▬▬▬▬▬

Scripts to rule them all repo: https://github.com/github/scripts-to-...

▬▬▬▬▬▬ Chapters 🕐  ▬▬▬▬▬▬

00:00 - Intro
01:41 - Fail fast
04:20 - Exit codes in Bash
10:06 - Parsing named arguments in bash
11:37 - User prompting in Bash
13:32 - TTY check in Bash
15:17 - Command exists
18:12 - Using TRAP to capture signals
19:41 - Using functions in Bash
23:07 - Add docs
24:00 - Print docs in Bash
25:58 - Logging in Bash

#glichstream #softwareengineering #programming #coding