ファイルをまとめてUTF-8に変換する
10月 26th, 2008
今回はLinux/Unixの備忘録です。
ファイルの文字コードを変換するにはnkf(日本語漢字フィルタ)をつかいますが、ファイルが多すぎて大変だ、というときにはxargsを使うといいようです。
具体的には次のようにします。
find -name ‘*.txt’ | xargs nkf –overwrite -w
便利です。
Posted in Linux, コンピュータ | No Comments »
今回はLinux/Unixの備忘録です。
ファイルの文字コードを変換するにはnkf(日本語漢字フィルタ)をつかいますが、ファイルが多すぎて大変だ、というときにはxargsを使うといいようです。
具体的には次のようにします。
find -name ‘*.txt’ | xargs nkf –overwrite -w
便利です。
Posted in Linux, コンピュータ | No Comments »
This entry was posted on 日曜日, 10月 26th, 2008 at 8:25:36 and is filed under Linux, コンピュータ. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
There are currently 125 posts and 68 comments, contained within 16 categories.