Want to see the full-length video right now for free?Sign In with GitHub for Free Access
Let's put it all together! Let's write a shell script! This video will teach you classic idioms to help first-time programmers and how to avoid common pitfalls that even seasoned pros might fall into. You'll learn why the "if" statement in the shell behaves the way it does, when to use single or double quotes, and one weird trick that all of your shell scripts should use.
(OK, the one weird trick is
set -e, which exits immediately when a command
fails, instead of trying to continue.)