tty中文顯示問題 - Linux

By Brianna
at 2015-07-02T20:30
at 2015-07-02T20:30
Table of Contents
大家好,我知道在tty顯示中文很麻煩,所以我想知道在亂碼背後的顯示模式
問題是這樣的:
我有50萬個檔案要處理,格式大概是 501025_ID.txt
因為一開始沒限制作業ID只能用英文,所以有幾個中文ID混入
LINUX顯示如下
502222_123.txt
503312_??+??.txt (為中文所顯示的亂碼)
507832_cher.txt
503878_-?{D.txt (為中文所顯示的亂碼)
要把中文的ID換成英數比較好處理
所以我用 find . -regextype egrep -regex ".*_[^[:alnum:]].*"
或是改用 -------------------------------".*_\?\?\+\?\?.*"
都沒辦法抓出任何一條Orz
想請問的是,怎麼樣可以知道linux實際上對那字元的認知是什麼?
或是,有認何方式可以直接把這些中文亂碼換成可見的英數文字嗎?
例如: 我 \u{num}
謝謝
Dan
--
不過是人
http://www.facebook.com/twaiting
--
Tags:
Linux
All Comments

By Heather
at 2015-07-03T20:37
at 2015-07-03T20:37

By Oscar
at 2015-07-08T12:50
at 2015-07-08T12:50

By Dorothy
at 2015-07-10T07:57
at 2015-07-10T07:57

By Ethan
at 2015-07-11T13:30
at 2015-07-11T13:30

By Zenobia
at 2015-07-14T01:13
at 2015-07-14T01:13

By Puput
at 2015-07-15T06:17
at 2015-07-15T06:17

By Joseph
at 2015-07-19T21:23
at 2015-07-19T21:23

By Caitlin
at 2015-07-21T21:15
at 2015-07-21T21:15

By Queena
at 2015-07-24T20:13
at 2015-07-24T20:13

By Elvira
at 2015-07-25T05:03
at 2015-07-25T05:03

By Eartha
at 2015-07-26T04:07
at 2015-07-26T04:07

By Delia
at 2015-07-27T04:50
at 2015-07-27T04:50

By Delia
at 2015-07-30T03:51
at 2015-07-30T03:51

By Noah
at 2015-07-30T06:48
at 2015-07-30T06:48

By Carolina Franco
at 2015-07-31T19:07
at 2015-07-31T19:07
Related Posts
我們成立了一個後端伺服的line群

By Jacky
at 2015-07-01T23:32
at 2015-07-01T23:32
F@H command line 進度

By Emma
at 2015-07-01T23:05
at 2015-07-01T23:05
Ubuntu電池電量被藍牙滑鼠影響

By Megan
at 2015-07-01T19:39
at 2015-07-01T19:39
sed 取代問題

By Linda
at 2015-07-01T15:48
at 2015-07-01T15:48
Linux編寫與燒錄機器人程式

By Hardy
at 2015-06-30T22:51
at 2015-06-30T22:51