Bash+Batch In One File

Jun 13, 2022 15:56

Today I wanted to write a script that I could execute from both *nix (using Bash or a similar shell) and on Windows (from a command prompt, i.e. a batch file). I found Max Norin's solution which works, but has a few limitations, e.g. when run it outputs either the word "off" when run in *nix or

https://danq.me/2022/06/13/bash-batch/

windows, programming, bash, macs, linux

Previous post Next post
Up