返回顶部
s

shellShell脚本参考

Shell scripting reference — Bash syntax, redirections, process substitution, signal handling, debugging techniques. Use when writing shell scripts, troubleshooting Bash behavior, or automating system tasks.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,103
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

shell

Shell — Shell脚本编程参考

Bash Shell脚本编程、内置功能及最佳实践的快速参考技能。

使用场景

  • - 编写具有正确错误处理机制的可靠Bash脚本
  • 理解重定向、管道和进程替换
  • 管理信号、陷阱和后台进程
  • 使用set选项和跟踪调试Shell脚本
  • 在Shell功能与外部工具之间做出选择

命令

intro

bash
scripts/script.sh intro

Shell脚本编程概述 — Bash特性、shebang、执行、可移植性。

variables

bash
scripts/script.sh variables

变量 — 声明、作用域、数组、参数扩展、特殊变量。

control

bash
scripts/script.sh control

控制流 — if/else、case、for、while、until、select、函数。

redirections

bash
scripts/script.sh redirections

重定向和管道 — 标准输入/标准输出/标准错误、here文档、进程替换。

safety

bash
scripts/script.sh safety

安全实践 — set -euo pipefail、引号使用、shellcheck、错误处理。

tools

bash
scripts/script.sh tools

必备工具 — awk、sed、grep、find、xargs、cut、sort、jq模式。

signals

bash
scripts/script.sh signals

信号和陷阱 — SIGTERM、SIGINT、清理处理程序、后台作业。

checklist

bash
scripts/script.sh checklist

Shell脚本质量检查清单。

help

bash
scripts/script.sh help

version

bash
scripts/script.sh version

配置

变量描述
SHELL_DIR数据目录(默认:~/.shell/)

由BytesAgain提供 | bytesagain.com | hello@bytesagain.com

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 shell-1776109628 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 shell-1776109628 技能

通过命令行安装

skillhub install shell-1776109628

下载

⬇ 下载 shell v1.0.0(免费)

文件大小: 8.59 KB | 发布时间: 2026-4-14 10:56

v1.0.0 最新 2026-4-14 10:56
publish v1.0.0

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部