Created
June 15, 2016 03:19
-
-
Save aseering/a06219e74c7f96ccea5ec65d5b2483b5 to your computer and use it in GitHub Desktop.
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 | |
echo "$@" | sed -e 's|\\|/|g' -e 's|^\([A-Za-z]\)\:/\(.*\)|/mnt/\L\1\E/\2|' |
This is great :) How would I go about reversing it, going from a Unix path to Windows?
Never mind, got it basically working :) https://gist.github.com/JacobDB/e71e22c3663175b2369211aeb54362fe
you guys are the bomb
Never mind, got it basically working :) https://gist.github.com/JacobDB/e71e22c3663175b2369211aeb54362fe
But where's the gist?! T_T
Just look for wslpath
For anyone interested, i created a small python script which can open any path (file/directory) from the WSL: https://gist.github.com/MathiasBaumgartinger/1f607cbf75203bd47c9fb0713741cf15
Just look for
wslpath
It would be nice if it did what I need it to, but unfortunately it doesn't help bypassing MAXPATH trying to change \?\d:\rsnapshot\backups to a useable path to no avail.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ ls "$(winpath.sh $'C:\Program Files\Windows NT')" Accessories TableTextService