{"id":21437413,"url":"https://github.com/keidrun/l2l-batchtobash-plugin","last_synced_at":"2026-05-21T04:03:49.499Z","repository":{"id":96381385,"uuid":"86941644","full_name":"keidrun/l2l-BatchToBash-plugin","owner":"keidrun","description":"L2L plugin for the conversion from the windows batch program to the linux bash program.","archived":false,"fork":false,"pushed_at":"2017-10-19T14:55:50.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T09:41:56.459Z","etag":null,"topics":["bash","batch","l2l","l2l-plugin","plugin"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keidrun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-01T20:42:38.000Z","updated_at":"2017-04-09T00:42:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a0a9f12-b6f7-4013-8dfc-b217fb8d2bbd","html_url":"https://github.com/keidrun/l2l-BatchToBash-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keidrun%2Fl2l-BatchToBash-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keidrun%2Fl2l-BatchToBash-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keidrun%2Fl2l-BatchToBash-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keidrun%2Fl2l-BatchToBash-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keidrun","download_url":"https://codeload.github.com/keidrun/l2l-BatchToBash-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243946251,"owners_count":20373015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","batch","l2l","l2l-plugin","plugin"],"created_at":"2024-11-23T00:19:38.824Z","updated_at":"2026-05-21T04:03:44.433Z","avatar_url":"https://github.com/keidrun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# l2l-BatchToBash-plugin\n\n[![tests][tests]][tests-url]\n[![coverage][cover]][cover-url]\n\nL2L plugin for the conversion from the windows batch program to the linux bash program.\n\n## Installation by Gradle\n\nYou add the following configuration to your `build.gradle` file. `${version}` is the release version.\n\n```groovy\nrepositories {\n    jcenter()\n}\n\ndependencies {\n    compile \"com.keidrun.l2l-BatchToBash-plugin:l2l-BatchToBash-plugin:${version}\"\n}\n```\n\n## Example of the Conversion from the Windows BATCH to the Linux BASH\n\n### Input: BATCH program\n\n```bat\n@echo off\ncd /d %~dp0\n\nset ARG=%1\n\nif %ARG%==1 (\n    echo 1\n) else if %ARG%==2 (\n    echo 2\n) else (\n    echo 3\n)\n\nfor %%i in (*.txt) do (\n    type %%i\n)\n\npause\n```\n\n### Output: BASH program\n\n```bash\n#!/bin/bash\ncd `dirname $0`\n\nARG=$1\n\nif [ ${ARG} -eq 1 ]; then\n    echo 1\nelif [ ${ARG} -eq 2 ]; then\n    echo 2\nelse\n    echo 3\nfi\n\nfor i in `ls *.txt`; do\n    cat $i\ndone\n\nread -p \"Press [Enter] key to resume.\"\n```\n\n## Not yet implemented list\n\n- `for` options\n- `goto` and `:LABEL`\n- `if` command\n- `setlocal` and `endlocal`\n- `set enabledelayedexpansion` and `!value!`\n- `%~value`\n- `shift`\n- `errorlevel`\n- `defined`\n- `call`\n- `tokens`\n- Other DOS commands's details\n\n[tests]:https://travis-ci.org/keidrun/l2l-BatchToBash-plugin.svg?branch=master\n[tests-url]:https://travis-ci.org/keidrun/l2l-BatchToBash-plugin\n\n[cover]:https://codecov.io/gh/keidrun/l2l-BatchToBash-plugin/branch/master/graph/badge.svg\n[cover-url]:https://codecov.io/gh/keidrun/l2l-BatchToBash-plugin","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeidrun%2Fl2l-batchtobash-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeidrun%2Fl2l-batchtobash-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeidrun%2Fl2l-batchtobash-plugin/lists"}