Shell scripting
Script reading, safe guards, text helpers, logging, and review habits.
What you will practice
Script shebang review; Script-style output; Test guards; Basename in scripts.
Use the worked examples when needed, then test your understanding without them.
- 01Script shebang reviewRead a script header and metadata before execution.Practice
- 02Script-style outputUse printf to create predictable script output.Practice
- 03Test guardsUse test commands as script-style guards.Practice
- 04Basename in scriptsUse basename to report script inputs.Practice
- 05Dirname in scriptsUse dirname to reason about script paths.Practice
- 06Sed config previewPreview config text replacement as a script step.Practice
- 07Awk reportsBuild a small report from fields.Practice
- 08Cut in scriptsExtract account fields for script-style checks.Practice
- 09Normalize textNormalize labels before comparing output.Practice
- 10Tee script logsCapture command output as a script log.Practice
- 11Xargs reviewUse xargs for safe argument shaping.Practice
- 12Script execution modeSet executable bits only after review.Practice
- 13Script diff reviewCompare config snapshots as a script review habit.Practice
- 14Script checksum reviewHash scripts and compare notes before trusting them.Practice
- 15Shell scripting checkpointComplete a mini script-review workflow.Practice
- 16Shebang readingInspect script interpreter declarations before execution.Practice
- 17Set eu reviewRecognize strict-mode style script guards.Practice
- 18Script guard checksCheck required files before script-style work.Practice
- 19Script log captureCapture script-style output into a log file.Practice
- 20Path helper script reviewUse basename and dirname as script building blocks.Practice
- 21Config diff scriptReview config drift with diff and grep.Practice
- 22Argument shape reviewUse xargs only for safe argument shaping.Practice
- 23Executable bit reviewSet executable mode only after reading a script.Practice
- 24Checksum before runHash scripts and read notes before trusting them.Practice
- 25Shell expanded checkpointComplete a script review from guards to logs.Practice
- 26Script input guardUse test checks to prove required files and directories exist.Practice
- 27Quoted argument reviewPreserve a multi-word value while capturing predictable output.Practice
- 28Predictable output contractCreate machine-readable status lines and verify their shape.Practice
- 29Script path resolutionResolve script paths and report their directory and basename.Practice
- 30Script change reviewCompare configuration snapshots and record a review marker.Practice
- 31Shell workflow bridgeCheckpoint guards, path handling, output contracts, and change review.Practice