Skip to content

Instantly share code, notes, and snippets.

@kemokemo
Last active September 4, 2017 01:09
Show Gist options
  • Save kemokemo/0d9d8ec33842fb45f6f7cbe1421dbee7 to your computer and use it in GitHub Desktop.
Save kemokemo/0d9d8ec33842fb45f6f7cbe1421dbee7 to your computer and use it in GitHub Desktop.
Linux形式のパスをWindows形式のパスに変換してクリップボードにコピーする方法 ref: http://qiita.com/KemoKemo/items/f91800836799102cf1f9
# 日本語を含むパスで文字化けします
$ cygpath -w `pwd` | tr -d '\n' | clip
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