文本行排序工具
FreeRuns bundled scriptsNot checked对文本文件行进行排序、去重、反转或乱序,支持字典序、数字序及按行长度排序,纯Python标准库实现。
About this skill
文本行排序工具
对文本文件的行进行排序、去重、反转、乱序。纯标准库,本地运行。
功能
- 按字典序 / 数字序排序
- 去重(保留首次出现)
- 反转行序
- 随机乱序
- 按行长度排序
依赖
无(Python 标准库)
使用方法
python3 scripts/line_sorter.py 列表.txt --sort
python3 scripts/line_sorter.py 列表.txt --unique -o 去重后.txt
python3 scripts/line_sorter.py 列表.txt --numeric --reverse
python3 scripts/line_sorter.py 列表.txt --shuffle
python3 scripts/line_sorter.py 列表.txt --by-length
适用场景
- 整理关键词 / 待办 / 名单
- 清洗重复数据
- 给列表随机排序做抽样
📊 相关服务:品牌 AI 搜索存在感免费检测
做品牌 / 营销 / 内容,你的品牌在 AI 搜索里"被看见"了吗?
AISoBrand 免费检测:看你的品牌在豆包 / 千问 / 元宝 / 文心 / Kimi / DeepSeek 的 AI 搜索里有没有名字、排第几。
Install 文本行排序工具 in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the 文本行排序工具 skill do?
对文本文件行进行排序、去重、反转或乱序,支持字典序、数字序及按行长度排序,纯Python标准库实现。
How do I install the 文本行排序工具 skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the 文本行排序工具 skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic