All languages

Shell

You're viewing a free preview. Sign in free to read every script.

Why this exists A shell script is a saved list of commands, and almost every mistake beginners make comes from one place: how the shell treats text. Variables are expanded, then split on spaces, then matched against…

Shell Basics: Variables, Quoting and Command Substitution

Variables, the difference between single and double quotes, braces, default values, arithmetic and command substitution, plus the quoting rule that prevents most shell bugs: always quote your variables.

Sign in free to read this script, along with the rest of the library.

Sign in free