LoginSignup
0
0

More than 5 years have passed since last update.

[memo] nkfのコマンド

Posted at

Kawatama.netさんの
「macでファイルの文字コードを変換する『nkfコマンド』の使い方とオプション一覧」
http://kawatama.net/others/mac/1754
の一部の切り貼りです。

自分用メモ


nkfコマンドの書式

$ nkf [options] [file] > [new_file]

【nkfコマンドの主なオプション】
-u:出力時にバッファリングを行わない
-j:JISコードに変換する
-e:EUCコードに変換する
-s:シフトJISコードに変換する
-w:UTF8コードに変換する
-r:ROT13/47の変換する
-T:テキスト・モードで出力する
file:変換元のファイルを指定する
new_file:変換先のファイル名を指定(必要な場合。不要なときは>以降不要)
-g:文字コード自動判別の結果を表示
–overwrite:引数のファイルに直接上書き

0
0
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
0
0