From 73c1842866711d13a1ca501f50172a9f827cfb70 Mon Sep 17 00:00:00 2001 From: shigemk2 Date: Mon, 11 Jan 2016 13:28:25 +0900 Subject: [PATCH] Add nkf plugin --- cheat/cheatsheets/nkf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cheat/cheatsheets/nkf diff --git a/cheat/cheatsheets/nkf b/cheat/cheatsheets/nkf new file mode 100644 index 0000000..9d2433b --- /dev/null +++ b/cheat/cheatsheets/nkf @@ -0,0 +1,20 @@ +# check the file's charactor code +nkf -g test.txt +# convert charactor code to UTF-8 +nkf -w --overwrite test.txt +# convert charactor code to EUC-JP +nkf -e --overwrite test.txt +# convert charactor code to Shift-JIS +nkf -s --overwrite test.txt +# convert charactor code to ISO-2022-JP +nkf -j --overwrite test.txt +# convert newline to LF +nkf -Lu --overwrite test.txt +# convert newline to CRLF +nkf -Lw --overwrite test.txt +# convert newline to CR +nkf -Lm --overwrite test.txt +# MIME encode +echo ใƒ†ใ‚นใƒˆ | nkf -WwMQ +# MIME decode +echo "=E3=83=86=E3=82=B9=E3=83=88" | nkf -WwmQ \ No newline at end of file