Minor formatting changes to the nkf cheatsheet.

This commit is contained in:
Chris Lane 2016-02-15 13:15:53 -05:00
parent 429ed25aba
commit 54086bf8d6
1 changed files with 10 additions and 1 deletions

View File

@ -1,20 +1,29 @@
# check the file's charactor code # check the file's charactor code
nkf -g test.txt nkf -g test.txt
# convert charactor code to UTF-8 # convert charactor code to UTF-8
nkf -w --overwrite test.txt nkf -w --overwrite test.txt
# convert charactor code to EUC-JP # convert charactor code to EUC-JP
nkf -e --overwrite test.txt nkf -e --overwrite test.txt
# convert charactor code to Shift-JIS # convert charactor code to Shift-JIS
nkf -s --overwrite test.txt nkf -s --overwrite test.txt
# convert charactor code to ISO-2022-JP # convert charactor code to ISO-2022-JP
nkf -j --overwrite test.txt nkf -j --overwrite test.txt
# convert newline to LF # convert newline to LF
nkf -Lu --overwrite test.txt nkf -Lu --overwrite test.txt
# convert newline to CRLF # convert newline to CRLF
nkf -Lw --overwrite test.txt nkf -Lw --overwrite test.txt
# convert newline to CR # convert newline to CR
nkf -Lm --overwrite test.txt nkf -Lm --overwrite test.txt
# MIME encode # MIME encode
echo テスト | nkf -WwMQ echo テスト | nkf -WwMQ
# MIME decode # MIME decode
echo "=E3=83=86=E3=82=B9=E3=83=88" | nkf -WwmQ echo "=E3=83=86=E3=82=B9=E3=83=88" | nkf -WwmQ