Bash/Shell Scripting
Bash Scripting
| Attribute | Value |
|---|---|
Goal |
Expert shell scripting for automation |
Interest Link |
Programming > Bash/Shell |
Status |
In Progress |
Application |
Infrastructure automation, dotfiles, CLI tools |
Documentation |
Codex bash section, domus-linux-ops |
Skill Areas
| Area | Description | Status |
|---|---|---|
Streams |
stdin, stdout, stderr, redirection |
[x] Proficient |
Pipes |
Command chaining, process substitution |
[x] Proficient |
Variables |
Local, environment, arrays, associative |
[x] Proficient |
Tests |
File tests, string tests, arithmetic |
[x] Proficient |
Loops |
for, while, until, C-style |
[x] Proficient |
Functions |
Declaration, return values, local scope |
[x] Proficient |
Error Handling |
set -e, trap, exit codes |
[ ] In Progress |
Portability |
POSIX compliance, shellcheck |
[ ] In Progress |
Key Patterns
Defensive scripting:
set -euo pipefail
Heredocs:
cat << 'EOF'
Content here
EOF
Process substitution:
diff <(cmd1) <(cmd2)
See: Codex bash section, domus-linux-ops heredoc-patterns.adoc