LoginSignup
2
2

More than 5 years have passed since last update.

対象ファイルの文字コードを全てUTF8、改行をLFにする。

Last updated at Posted at 2012-09-28

nkfを使う。環境はMac。
nkfは、homebrewを使えばインストールできる。

参考:
改行コードの変換コマンドについて - 試験運用中なLinux備忘録
エンコーディングの変換コマンドについて - 試験運用中なLinux備忘録

拡張子.txtを対象にするなら、

cd /path/to/textdir
nkf --unix --utf8 --overwrite **/*.txt
2
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
2
2