Last active
September 4, 2017 01:09
-
-
Save kemokemo/0d9d8ec33842fb45f6f7cbe1421dbee7 to your computer and use it in GitHub Desktop.
Linux形式のパスをWindows形式のパスに変換してクリップボードにコピーする方法 ref: http://qiita.com/KemoKemo/items/f91800836799102cf1f9
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
# 日本語を含むパスで文字化けします | |
$ cygpath -w `pwd` | tr -d '\n' | clip |
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
pwd | tr -d '\n' | iconv -f UTF-8 -t SJIS | sed -e 's/\//\\/g' -e 's/\(^\\.\)/\1:/' -e 's/\(^\\\)//' | clip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment