[sourcecode language=”shell”]
//フォルダ内のファイル一括 文字コード変換
for i in `find ./ -name "*.html"`; do iconv -f UTF-8-MAC -t UTF-8 $i > $i.new && mv $i.new $i; done
//一枚変換
iconv -f UTF-8-MAC -t UTF-8 index.html > a.html
[/sourcecode]
web メモ
[sourcecode language=”shell”]
//フォルダ内のファイル一括 文字コード変換
for i in `find ./ -name "*.html"`; do iconv -f UTF-8-MAC -t UTF-8 $i > $i.new && mv $i.new $i; done
//一枚変換
iconv -f UTF-8-MAC -t UTF-8 index.html > a.html
[/sourcecode]