Shell scripting reference — Bash syntax, redirections, process substitution, signal handling, debugging techniques. Use when writing shell scripts, troubleshooting Bash behavior, or automating system tasks.
Bash Shell脚本编程、内置功能及最佳实践的快速参考技能。
bash
scripts/script.sh intro
Shell脚本编程概述 — Bash特性、shebang、执行、可移植性。
bash
scripts/script.sh variables
变量 — 声明、作用域、数组、参数扩展、特殊变量。
bash
scripts/script.sh control
控制流 — if/else、case、for、while、until、select、函数。
bash
scripts/script.sh redirections
重定向和管道 — 标准输入/标准输出/标准错误、here文档、进程替换。
bash
scripts/script.sh safety
安全实践 — set -euo pipefail、引号使用、shellcheck、错误处理。
bash
scripts/script.sh tools
必备工具 — awk、sed、grep、find、xargs、cut、sort、jq模式。
bash
scripts/script.sh signals
信号和陷阱 — SIGTERM、SIGINT、清理处理程序、后台作业。
bash
scripts/script.sh checklist
Shell脚本质量检查清单。
bash
scripts/script.sh help
bash
scripts/script.sh version
| 变量 | 描述 |
|---|---|
| SHELL_DIR | 数据目录(默认:~/.shell/) |
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 shell-1776109628 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 shell-1776109628 技能
skillhub install shell-1776109628
文件大小: 8.59 KB | 发布时间: 2026-4-14 10:56