Bash
Full course · 21 lessonsGNU replacement for the Bourne shell
Getting Started with Bash
Shebang, echo, variables, comments, and your first script.
Variables and Scoping
local vs global scope, quoting, export, and special parameters.
Control Flow
if/elif/else, case, and the test commands [ ], [[ ]], ( ( ) ).
Loops
for, while, until, break, continue, and brace expansion.
Functions
Defining functions, arguments, return values, and reusable helpers.
String Manipulation
Length, substring, pattern removal, replacement, and defaults.
Arrays and Associative Arrays
Indexed arrays, associative arrays, slicing, and safe copying.
Files, Pipes, and Redirection
Pipelines, stdout/stderr redirection, here-docs, and process substitution.
Globbing and Regular Expressions
Glob patterns, extended globs, grep, sed, and awk fundamentals.
Text Processing Toolkit
sort, uniq, cut, wc, head, tail, xargs, join, paste, tr.
Error Handling
set -euo pipefail, trap, robust patterns, and exit codes.
Process Management
Background jobs, wait, kill, pgrep, and job control.
Command-Line Argument Parsing
Positional params, getopts, shift, and flag loops.
Environment and Configuration
Env vars, exports, dotfiles, sourcing, and shell modes.
Advanced I/O and Redirection
File descriptors, /dev/null, safe file reads, and named pipes.
JSON and Data Parsing
jq for JSON: queries, transforms, building, and validation.
Concurrency and Parallelism
xargs -P, parallel, background fan-out, subshells, and coprocesses.
Production Scripting Patterns
Library scripts, dry-run, logging, and idempotency.
Performance
Builtins over forks, timing, profiling, and caching.
Security
Quoting against injection, shellcheck, secrets, and privilege checks.
Advanced Bash: Regex, Substitution, and Completion
BASH_REMATCH, process substitution tricks, completions, and checklists.

