Monday, December 11, 2006

Sort tab delimited Japanese Data (unix)

sort -t ******** # push a tab key here, it wouldn't accept \t

in zsh, it will be a no-go because tab is assigned for auto-completion. You may need to create a shell file and put the command in.

the file would like

sort -t " " ......

In order to sort Japanese Data, you have to set LANG=jp_JP.UTF-8 for Linux
For Solaris LC_CTYPE=jp_JP.UTF-8 will do the thing.

No comments: