跳到正文
cccskills
免费在 GitHub 公开

text

Analyze and transform text files using bash tools

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md1.2 KB
  • scripts/extract.sh782 B
  • scripts/search.sh759 B
  • scripts/stats.sh552 B
  • scripts/wordfreq.sh678 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Text Processing Skill

Process text files using standard bash tools (grep, sed, awk, wc).

Available Scripts

stats.sh

Get statistics about a text file (lines, words, characters).

bash /skills/text/scripts/stats.sh document.txt

search.sh

Search for patterns in text files.

bash /skills/text/scripts/search.sh <file> <pattern> [--count] [--context <lines>]

extract.sh

Extract specific lines or sections from a file.

bash /skills/text/scripts/extract.sh <file> --lines <start>-<end>
bash /skills/text/scripts/extract.sh <file> --between <start_pattern> <end_pattern>

wordfreq.sh

Count word frequencies in a text file.

bash /skills/text/scripts/wordfreq.sh document.txt [--top <n>]

Examples

# Get file statistics
bash /skills/text/scripts/stats.sh readme.txt

# Search with context
bash /skills/text/scripts/search.sh log.txt "ERROR" --context 2

# Extract lines 10-20
bash /skills/text/scripts/extract.sh file.txt --lines 10-20

# Top 10 most frequent words
bash /skills/text/scripts/wordfreq.sh article.txt --top 10

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

csv

免费

Analyze and transform CSV data using bash tools

中文简介正在准备中。当前显示原文说明。

vercel-labs/bash-tool6282026年8月22日 更新

查看 vercel-labs 的全部技能

报告此技能的问题