From 366914775cf710adccd16a867a063b20f22b7d8f Mon Sep 17 00:00:00 2001 From: Karolin Varner Date: Sat, 23 Oct 2021 10:00:51 +0200 Subject: [PATCH] Modify the example `huniq -c` output to make clear it's not sorted --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 6c910d9..e485a5d 100644 --- a/readme.md +++ b/readme.md @@ -16,8 +16,8 @@ baz $ echo -e "foo\nbar\nfoo\nbaz" | huniq -c 1 baz -1 bar 2 foo +1 bar ``` `huniq` replaces `sort | uniq` (or `sort -u` with gnu sort) and `huniq -c` replaces `sort | uniq -c`, assuming the data is sorted just so it can be passed to `uniq`. If having sorted output is desired, `sort | uniq` should still be used.