Skip to content

Instantly share code, notes, and snippets.

@simics-ja
Last active May 19, 2021 06:28
Show Gist options
  • Save simics-ja/85a639a9b3f82761b78f7fe214c6473f to your computer and use it in GitHub Desktop.
Save simics-ja/85a639a9b3f82761b78f7fe214c6473f to your computer and use it in GitHub Desktop.
[nkfコマンド] 文字コード変換コマンドのまとめ #nkf #shell
nkf -w hoge_sjis.txt > hoge_utf8.txt
nkf -g hoge.txt
echo '<url>' | nkf -w --url-input
# クリップボードから
pbpaste | nkf -WwMQ | tr = %
echo 'hoge' | nkf -WwMQ | tr = %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment