360 Secure SkillHub
360 安全技能中心

Sort Lines Tool

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

分类:效率
dinghaibin
dinghaibin
热度 22.40
最近更新 2026-05-11 17:47:26

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/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