Last active
April 24, 2017 14:47
-
-
Save kunst1080/afc6130050f17cc22fa6478eb66d2cfe to your computer and use it in GitHub Desktop.
ShellScript in Windows BAT
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
@rem ' | |
@echo off | |
set P="/mnt/%~f0" | |
set P=%P:\=/% | |
set P=%P::=% | |
set P=%P:/mnt/C/=/mnt/c/% | |
set P=%P:/mnt/D/=/mnt/d/% | |
bash.exe %P% %* | |
goto :eof | |
' 2>/dev/null | |
# ---------- SHELL ---------- # | |
echo \$1 = $1 | |
yes This is ShellScript | head -3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change the line feed code to LF.