Report or filter repeated lines in sorted text. Use for deduplication, frequency counting, and data cleanup.
Report or filter repeated lines in sorted text. Use for deduplication, frequency counting, and data cleanup.
Remove or count consecutive duplicate lines from sorted input. Works best with pre-sorted data using sort-tool.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: uniq-tool
description: Report or filter repeated lines in sorted text. Use for deduplication, frequency counting, and data cleanup.
---
# Duplicate Line Filter
Remove or count consecutive duplicate lines from sorted input. Works best with pre-sorted data using sort-tool.
## Usage
```bash
uniq-tool [options] [input_file [output_file]]
```
## Options
- `-c`: Count occurrences of each line
- `-d`: Only show duplicate lines
- `-u`: Only show unique (non-duplicate) lines
- `-i`: Case-insensitive comparison
## Examples
```bash
# Remove adjacent duplicates
uniq-tool sorted.txt
# Count occurrences
uniq-tool -c sorted.txt
# Only show duplicates
uniq-tool -d sorted.txt
```
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。