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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -