360 Secure SkillHub
360 安全技能中心

Sort Lines Tool

该 Skill 提供 sort-lines-tool 命令行工具,用于对文本文件中的行按字母或数字顺序排序,支持逆序(-r)、去重(-u)和忽略大小写(-f)。附带 scripts/sort.py 脚本,依赖 bash、python3 及 sort 命令,仅处理本地文件,不涉及外部服务或网络。

dinghaibin
dinghaibin
热度 31.61
最近更新 2026-05-11 17:47:26
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add sort-lines-tool
Metadata
name
sort-lines-tool
description
Sort lines of text alphabetically or numerically. Use for data organization, list management, and text file preparation.

Sort Lines - Line Sorting Tool

Arrange text lines in alphabetical or numerical order. Supports case-insensitive sorting, reverse order, and unique line filtering.

Usage

sort-lines-tool [options] <file>

Options

  • -n: Numeric sort (instead of alphabetical)
  • -r: Reverse order
  • -u: Unique lines only
  • -f: Case-insensitive sort

Examples

sort-lines-tool names.txt
sort-lines-tool -n numbers.txt
sort-lines-tool -r data.txt