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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -