nkf
Network kanji filter: convert kanji code from one encoding to another. tldr-pages
On several platforms
Several platforms
Convert to UTF-8 encoding
nkf -w path/to/file.txtIdentifyConvert to SHIFT_JIS encoding
nkf -s path/to/file.txtIdentifyConvert to UTF-8 encoding and overwrite the file
nkf -w --overwrite path/to/file.txtIdentifyUse LF as the new line code and overwrite (UNIX type)
nkf -d --overwrite path/to/file.txtIdentifyUse CRLF as the new line code and overwrite (windows type)
nkf -c --overwrite path/to/file.txtIdentifyDecrypt mime file and overwrite
nkf -m --overwrite path/to/file.txtIdentify