uniq treats lines as equal when they are not -
i expect different output command:
$ echo -e "あいうえお\nオエウイア" | uniq -c 2 あいうえお
the 2 lines not same.
compare example, working expected:
$ echo -e "aiueo\noeuia" | uniq -c 1 aiueo 1 oeuia
is unicode or utf-8 issue? did not find option support "exotic" characters.
edit: experiencing similar problem when using sort japanese input. input of form a\nb\na\nb\n
(or, ommiting '\n', abab
) stays way, expect aabb
or @ least bbaa
.
there go - echo -e "あいうえお\nオエウイア" | uni2ascii -q | uniq -c | ascii2uni
Comments
Post a Comment