Created
May 13, 2012 08:02
-
-
Save arosh/2686865 to your computer and use it in GitHub Desktop.
そのディレクトリにあるHTMLをUTF-8に変換するシェルスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iconv --list | |
で指定できる文字コードが表示される | |
for s in *.html; do cp $s ${s%.html}.cp.html; done | |
for s in *.cp.html; do iconv -f CP932 -t UTF-8 < $s > ${s%.cp.html}.html; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nkfの--overwriteを使ったほうが簡単です。