Awk: What wrong with CJK characters? #Korean
问题 Given a .txt files with space-separated words such as: But where is Esope the holly Bastard But where is 생 지 옥 이 군 지 옥 이 지 옥 지 我 是 你 的 爸 爸 ! 爸 爸 ! ! ! 你 不 會 的 ! And the Awk function : cat /pathway/to/your/file.txt | tr ' ' '\n' | sort | uniq -c | awk '{print $2" "$1}' I get the following output in my console which is invalid for korean words (valid for english and Chinese space-separated words) 생 16 Bastard 1 But 2 Esope 1 holly 1 is 2 the 1 where 2 不 1 你 2 我 1 是 1 會 1 爸 4 的 2 How to get it