Egmont Koblinger wrote:

>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.
>  
>
It would be nice.
Also it would be nice to be able to specify fields like one can in sort.
A work around until this gets implemented is:

tr '\0' '\n' | uniq | tr '\n' '\0'

Pádraig.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to