[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
uniq -z
From: |
Egmont Koblinger |
Subject: |
uniq -z |
Date: |
Fri, 5 May 2006 13:38:46 +0200 |
User-agent: |
Mutt/1.5.8i |
Hi,
Plenty of text utilities are able to work with lines terminated by zero
bytes instead of newlines. "sort" is one example, which has an internal uniq
support, so "sort -z -u" sorts the input and removes adjacent identical
zero-terminated strings.
However, standalone "uniq" (5.94) doesn't support this, so I can't perform a
"uniq" without a "sort" on zero-terminated strings.
It would be nice if "uniq" also had a "-z" option.
Thanks,
Egmont
- uniq -z,
Egmont Koblinger <=