$ uniq -c sorted.txt
$ sort names.txt | uniq -d
| -c | prefix each line with the number of times it occurred |
| -d | print only lines that are repeated |
| -u | print only lines that are never repeated |
| -i | ignore case when comparing lines |
| -f | skip the first N fields when comparing |
| -s | skip the first N characters when comparing |
| -w | compare no more than N characters per line |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.