L2L plugin for the conversion from the windows batch program to the linux bash program.
You add the following configuration to your build.gradle
file. ${version}
is the release version.
repositories {
jcenter()
}
dependencies {
compile "com.keidrun.l2l-BatchToBash-plugin:l2l-BatchToBash-plugin:${version}"
}
@echo off
cd /d %~dp0
set ARG=%1
if %ARG%==1 (
echo 1
) else if %ARG%==2 (
echo 2
) else (
echo 3
)
for %%i in (*.txt) do (
type %%i
)
pause
#!/bin/bash
cd `dirname $0`
ARG=$1
if [ ${ARG} -eq 1 ]; then
echo 1
elif [ ${ARG} -eq 2 ]; then
echo 2
else
echo 3
fi
for i in `ls *.txt`; do
cat $i
done
read -p "Press [Enter] key to resume."
for
optionsgoto
and:LABEL
if
commandsetlocal
andendlocal
set enabledelayedexpansion
and!value!
%~value
shift
errorlevel
defined
call
tokens
- Other DOS commands's details