opening a file in aix
(AIX/ksh) i have a chinese file ...i cant able to open it in aix using cat fully...if i give cat t开发者_StackOverflow社区hen some contents are missing...and if i give cat -v it is giving wierd code....even i tried with while loop to read contents,but not working...with more command i can but i cant use more in shell scripting...so please shed some idea here...many thanks
The issue seems to be your terminal emulator, not the cat command itself which just output the file's content without processing. Make sure your character encoding is correct, should be LC_CTYPE, LC_ALL or perhaps LANG and that your terminal can display chinese characters.
精彩评论