Last active
August 29, 2015 14:01
-
-
Save lasta/b2ad53ba1e445d5d9206 to your computer and use it in GitHub Desktop.
Convert OS X style path to Windows on Parallels style path.
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
#!/bin/bash | |
set -euo pipefail | |
# pwd : ~/path/to/dir | |
# dir : \\psf\path\to\dir | |
osx_dir_name=`pwd` | |
win_dir_name=`echo ${osx_dir_name} | cut -f4- -d "/" | sed -e 's/\\//\\\/g'` | |
echo "\\\\psf\\${win_dir_name}" | pbcopy | |
unset osx_dir_name | |
unset win_dir_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment