Last active
October 4, 2017 10:10
-
-
Save 1kastner/723a52f352c3eead42988c26b4ade5d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
linuxify() { | |
windowspath=$1 | |
temppath="$(echo $windowspath | sed -E 's/([A-Z]):/\/mnt\/\L\1/g')" # C: -> /mnt/c, E: -> /mnt/e | |
temppath="$(echo $temppath | sed 's/\\/\//g')" # backslash -> forward slash | |
linuxpath=$temppath | |
echo $linuxpath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment