Skip to content
Clairos Learn

31 lessons · UNIX / Linux

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.

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