ä¸æ¬ãã¦ãã¡ã¤ã«ã®æåã³ã¼ããæ¤åºããæ¹æ³
Windowsç°å¢ã§ãã¡ã¤ã«ãæä½ããLinuxç°å¢ã¸ãã¡ã¤ã«ãã¢ãããã¼ãããæã«
æå³ãããShift_JIS ãã¡ã¤ã«ãã¢ãããã¦æååããã¦ãã¾ã£ããã¨ããã¾ãããï¼
å®è¡æã«ç°¡åã«åããç®æãªããã¹ãããã°æ°ãã¤ãã¾ãã
ã¢ã¹ãã¼ã³ã¼ãã ãã§æ¸ãããé¢æ°ãã¯ã©ã¹ã®ãã¡ã¤ã«ã ã£ããããã¨ã
ã¨ã³ã³ã¼ãåé¡ãåºããã¨ã¯å°ãªãã®ã§è¦è½ã¨ããã¡ã§ãã
ãã¡ãã¡ãã¡ã¤ã«ãéãã¦ç¢ºèªããã®ã¯å¤§å¤ãªã®ã§ãä¸æ¬ãã¦æåã³ã¼ãã確èªããæ¹æ³ããªããã¨èª¿ã¹ã¦ãããããã¾ããã
以ä¸ã®ã³ãã³ãã§OKã
find -name '*.php' | xargs nkf --guess
ãã¡ã¤ã«åã¨æåã³ã¼ãã®ä¸è¦§ã表示ããã¾ãã
ã¡ãªã¿ã«ãä¸æ¬ãã¦æåã³ã¼ããå¤æãããã¨ãã§ãã¾ãã
# UTF-8 ã«å¤æ find -name '*.php' | xargs nkf --overwrite -w # EUC-JP ã«å¤æ find -name '*.php' | xargs nkf --overwrite -e
ãåèã 文字コード変換コマンドnkfの使い方まとめ