Skip to content

Commit

Permalink
Modify the example huniq -c output to make clear it's not sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
koraa authored Oct 23, 2021
1 parent bc5c0ca commit 3669147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3669147

Please sign in to comment.