LoginSignup
1
2

More than 3 years have passed since last update.

MacでWindowsからのテキストをiconvで一括変換する

Posted at

ほんと大した話ではないのだけど、何故か検索するとnkfしか出てこないから。
macで直下のディレクトリすべてのcppファイルをcp932からutf8に変換するだけのスクリプトです。

find . -type f | grep "\.cpp$" | xargs -t -I{} sh -c "iconv -f cp932 -t utf8 {} > {}.utf8.cpp"

以上、解散!!

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2