Last active
May 19, 2021 06:28
-
-
Save simics-ja/85a639a9b3f82761b78f7fe214c6473f to your computer and use it in GitHub Desktop.
[nkfコマンド] 文字コード変換コマンドのまとめ #nkf #shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nkf -w hoge_sjis.txt > hoge_utf8.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nkf -g hoge.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '<url>' | nkf -w --url-input | |
# クリップボードから | |
pbpaste | nkf -WwMQ | tr = % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'hoge' | nkf -WwMQ | tr = % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment