mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 11:46:00 +02:00

* pages*: refine wording --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
29 lines
637 B
Markdown
29 lines
637 B
Markdown
# nkf
|
|
|
|
> Network kanji filter.
|
|
> Converts kanji code from one encoding to another.
|
|
> More information: <https://manned.org/nkf>.
|
|
|
|
- Convert to UTF-8 encoding:
|
|
|
|
`nkf -w {{path/to/file.txt}}`
|
|
|
|
- Convert to SHIFT_JIS encoding:
|
|
|
|
`nkf -s {{path/to/file.txt}}`
|
|
|
|
- Convert to UTF-8 encoding and overwrite the file:
|
|
|
|
`nkf -w --overwrite {{path/to/file.txt}}`
|
|
|
|
- Use LF as the new line code and overwrite (UNIX type):
|
|
|
|
`nkf -d --overwrite {{path/to/file.txt}}`
|
|
|
|
- Use CRLF as the new line code and overwrite (windows type):
|
|
|
|
`nkf -c --overwrite {{path/to/file.txt}}`
|
|
|
|
- Decrypt mime file and overwrite:
|
|
|
|
`nkf -m --overwrite {{path/to/file.txt}}`
|