-
-
Save starise/541eaa6843d42511a2e6b2bd279bcef6 to your computer and use it in GitHub Desktop.
This is a simple function for converting windows paths (C:\Users\Test\t.txt) to their WSL equivalent (/mnt/c/Users/Test/t.txt)
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 | |
function windir() { | |
echo "/mnt/$1" | sed -e 's/\\\\/\//g' -e 's/\b\(.\):/\L\1/g' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment