Sort lines of text files alphabetically or numerically. Use for data preparation, list organization, and output...
Sort lines of text files alphabetically or numerically. Use for data preparation, list organization, and output formatting.
Arrange text file lines in specified order with support for numeric, month-name, and reverse sorting. Handles large files efficiently.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: sort-tool
description: Sort lines of text files alphabetically or numerically. Use for data preparation, list organization, and output formatting.
---
# Line Sorting Utility
Arrange text file lines in specified order with support for numeric, month-name, and reverse sorting. Handles large files efficiently.
## Usage
```bash
sort-tool [options] [file...]
```
## Options
- `-n`: Numeric sort
- `-r`: Reverse order
- `-u`: Unique lines (remove duplicates)
- `-k N`: Sort by column N
- `-t SEP`: Use SEP as field separator
## Examples
```bash
# Alphabetical sort
sort-tool names.txt
# Numeric sort
sort-tool -n numbers.txt
# Sort by column 2
sort-tool -k 2 -t ',' data.csv
```
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。