{"id":16151467,"url":"https://github.com/antonako1/battosh","last_synced_at":"2026-04-10T17:03:56.273Z","repository":{"id":245301895,"uuid":"816040263","full_name":"Antonako1/battosh","owner":"Antonako1","description":"turn batch script to shell/bash script","archived":false,"fork":false,"pushed_at":"2024-07-11T16:59:09.000Z","size":1975,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T05:16:20.692Z","etag":null,"topics":["bash","batch","linux","shell","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Antonako1.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":"2024-06-16T22:26:54.000Z","updated_at":"2024-07-11T16:59:12.000Z","dependencies_parsed_at":"2024-07-11T19:21:32.695Z","dependency_job_id":null,"html_url":"https://github.com/Antonako1/battosh","commit_stats":null,"previous_names":["antonako1/battosh"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2Fbattosh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2Fbattosh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2Fbattosh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2Fbattosh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antonako1","download_url":"https://codeload.github.com/Antonako1/battosh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563922,"owners_count":20958971,"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","linux","shell","windows"],"created_at":"2024-10-10T00:56:57.746Z","updated_at":"2025-12-30T23:06:04.308Z","avatar_url":"https://github.com/Antonako1.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BATch TO SHell\n\n### Turn batch scripts to shell scripts on Windows and Linux\n\nNOTE! Please check the shell scripts before running them! Everything cannot be changed from batch to shell the way the user probably intended.\n\n\nThe program uses ATRC resource file library. Documentation on how to work with it is written into  ```.\\ATRC\\README.txt ```\n\nFor most of the commands, the defaults are there for a reason but you can modify them.\n \nResource files will be downloaded to:\n\nLinux: ```~/.config/battosh/ATRC```\n\nWindows: ```C:\\Users\\%USERNAME%\\battosh\\ATRC```\n\n\nEvery run will create logs at:\n\nLinux: ```~/.config/battosh/logs```\n\nWindows: ```C:\\Users\\%USERNAME%\\battosh\\logs```\n\n## Download\n\nSee [releases](https://github.com/Antonako1/battosh/releases)\n\nWindows:\n\n- Standalone executable\n- Installer executable\n\nLinux:\n\n- Standalone executable\n- AppImage executable\n\n## Usage\n\n        battosh {args} [optional]\n\n        args:\n            provide path to your batch script\n\n        optional\n            -o,     --out                       Set the program to output the shell file with a different filename\n            -h,     --help                      See help message\n                    --version                   See version\n                    --wsl                       Turn paths to comply with WSL, C:\\temp -\u003e /mnt/c/temp.\n                    --no-linux                  Program does not turn some paths from windows to linux\n            -nc,    --no-comments               Program does not save comments\n                    --disable-atrc-warnings     Disable warning messages from ATRC\n                    --set-mkdirp                Sets all MKDIR commands to have -p as it is the Windows default\n            -qm,    --set-quietmode             CMD flag /Q will be turned to 2\u003e /dev/null\n            -ds,    --dir-sort                  When dir is translated to ls, add -l flag to ls (ls -l) \n            -bs,    --bat-shell                 Turn all occurences of .bat to .sh\n                    --set-home {path}           Give absolute path to where the program will look for config files\n\n        examples:\n            battosh file.bat                    -\u003e outputs file.sh\n            battosh file.bat -o test.sh         -\u003e outputs test.sh\n\nsee file processing flags to inject and modify code during compile `ATRC\\PROCESS_FLAGS.atrc`\n\nbattosh can turn the following commands/statements with their flags into bash\n    \n    Variables               =\u003e              See ATRC\\VARIABLES.atrc\n    ECHO                    =\u003e              See ATRC\\ECHO.atrc\n    @ECHO (on/off)          =\u003e              See ATRC\\ECHO.atrc\n    (@)REM, ::              =\u003e              See ATRC\\COMMENTS.atrc\n    VER                     =\u003e              See ATRC\\VER.atrc\n    CLS                     =\u003e              See ATRC\\CLS.atrc\n    CALL                    =\u003e              See ATRC\\CALL.atrc\n    TYPE                    =\u003e              See ATRC\\TYPE.atrc\n    CD, CHDIR, CD..         =\u003e              See ATRC\\CD.atrc\n    EXIT                    =\u003e              See ATRC\\EXIT.atrc\n    Relational operators    =\u003e              See ATRC\\RELATIONAL_OPERATORS.atrc\n    Logical operators       =\u003e              See ATRC\\LOGICAL_OPERATORS.atrc \n    Assignment operators    =\u003e              See ATRC\\ASSIGNMENT_OPERATORS.atrc\n    Bitwise operators       =\u003e              See ATRC\\BITWISE_OPERATORS.atrc\n    Arithmetic operators    =\u003e              See ATRC\\ARITHMETIC_OPERATORS.atrc\n    String operators        =\u003e              See ATRC\\STRING_OPERATORS.atrc\n    IF, ELSE(ELSE IF)       =\u003e              See ATRC\\IF.atrc\n    MKDIR, MD               =\u003e              See ATRC\\MKDIR.atrc\n    RMDIR, RD               =\u003e              See ATRC\\RMDIR.atrc\n    REN, RENAME             =\u003e              See ATRC\\RENAME.atrc\n    TIMEOUT                 =\u003e              See ATRC\\TIMEOUT.atrc\n    MOVE                    =\u003e              See ATRC\\MOVE.atrc\n    HELP                    =\u003e              See ATRC\\HELP.atrc\n    PAUSE                   =\u003e              See ATRC\\PAUSE.atrc\n    DIR                     =\u003e              See ATRC\\DIR.atrc\n    SET                     =\u003e              See ATRC\\SET.atrc\n    COPY                    =\u003e              See ATRC\\COPY.atrc\n\n### Known issues\n\n## Developing\n\n### Build and run yourself\n\n    Windows, Visual Studio:\n        C++ CMake tools for windows\n        C++ v14.xx build tools for (processor)\n        MSVC build tools\n\n    Windows, Cygwin, MSYS:\n        Cmake, Ninja and somekind of C++ compiler should work\n\n    Linux:\n        Cmake, Ninja and somekind of C++ compiler\n\n    NOTE: See .\\\u003cwin|linux\u003e\\\u003cbatch|shell\u003e\\globals.\u003cbat|sh\u003e. Enter your paths there or the executable programs if they are found in the PATH\n\n    build project:\n        .\\\u003cwin|linux\u003e\\build.\u003cbat|sh\u003e\n\n    run project:\n        .\\\u003cwin|linux\u003e\\run.\u003cbat|sh\u003e [args...]\n\n    build and run the project:\n        .\\build_n_run.\u003cbat|sh\u003e [args...]\n\n    clear build:\n        .\\\u003cwin|linux\u003e\\\u003cbatch|shell\u003e\\del.\u003cbat|sh\u003e\n\n## Releasing\n\nIn .\\release_building, run win.bat and linux.sh to build all the release binaries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonako1%2Fbattosh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonako1%2Fbattosh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonako1%2Fbattosh/lists"}