Your first script
Write, mark executable, and run your first bash script, plus what the shebang line and PATH lookup actually do.
A guided course in bash scripting, one lesson at a time.
Write, mark executable, and run your first bash script, plus what the shebang line and PATH lookup actually do.
Why unquoted variables break bash scripts, when to use double vs single quotes, and how glob characters make it worse.
The difference between [ and [[ in bash, why unquoted variables crash [ but not [[, and pattern matching with case.