Skip to main content

csv-tools

Parse and analyze CSV data

来源信息

仓库
gebruder/wirken
最近来源活动
2026年9月19日 16:07
检测到的 SKILL.md 语言
英语
星标
188
分支
9

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
csv-tools
description
Parse and analyze CSV data
disable-model-invocation
false
permissions
{"tools":{"allow":["exec"]},"egress":{"mode":"deny"},"inference":{"allow":["*"]}}
# CSV Tools Work with CSV files using standard shell tools. ## View - First few rows: `head -5 data.csv` - Column headers: `head -1 data.csv` - Row count: `wc -l data.csv` - Specific columns (1st and 3rd): `cut -d',' -f1,3 data.csv` ## Filter and sort - Filter rows: `awk -F',' '$3 > 100' data.csv` - Sort by column: `sort -t',' -k2 -n data.csv` - Unique values in column: `cut -d',' -f2 data.csv | sort -u` - Count by value: `cut -d',' -f2 data.csv | sort | uniq -c | sort -rn` ## Transform - Remove header: `tail -n +2 data.csv` - Add line numbers: `nl -ba data.csv` - Replace delimiter: `sed 's/,/\t/g' data.csv` (CSV to TSV) ## Python (for complex operations) ``` python3 -c " import csv, sys reader = csv.DictReader(open('data.csv')) for row in reader: print(row) " | head -10 ```
在 GitHub 查看