Quick Start
Get started with uniqseq in 5 minutes.
Installation
Basic Usage
Remove Duplicate Lines
The simplest use case - remove duplicate single lines:
Unlike uniq, uniqseq finds duplicates anywhere in the input, not just adjacent lines.
Remove Duplicate Sequences
Detect and remove repeated 3-line sequences:
Example: If your log file contains:
[10:30:01] Starting task
[10:30:02] Processing...
[10:30:03] Task complete
[10:30:05] Starting task
[10:30:06] Processing...
[10:30:07] Task complete
The output keeps only the first occurrence:
Skip Timestamp Prefixes
When lines differ only by timestamps, use --skip-chars to ignore them:
This skips the first 21 characters (e.g., [2024-01-15 10:30:03]) when comparing lines.
Common Patterns
Clean Build Logs
Process Live Output
Track Only Errors
Next Steps
- Basic Concepts - Understand how uniqseq works
- Common Patterns - Copy-paste ready examples
- Troubleshooting - Solutions to common problems
- Use Cases - Real-world examples
- CLI Reference - Complete command-line options