Examples (6)
Convert to UTF-8 encoding
nkf -w path/to/file.txtConvert to SHIFT_JIS encoding
nkf -s path/to/file.txtConvert to UTF-8 encoding and overwrite the file
nkf -w --overwrite path/to/file.txtUse LF as the new line code and overwrite (UNIX type)
nkf -d --overwrite path/to/file.txtUse CRLF as the new line code and overwrite (windows type)
nkf -c --overwrite path/to/file.txtDecrypt mime file and overwrite
nkf -m --overwrite path/to/file.txtmade by @shridhargupta | data from tldr-pages