Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ShellScript in Windows BAT
@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

kunst1080 commented Apr 24, 2017

Change the line feed code to LF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment