SHC
Shell script compiler is a tool that compiles a script written in bash or sh to a binary file. This binary file can be executed on any system that has the same architecture as the system on which the script was compiled.
Installation
Debian/Ubuntu
Usage
Where:
-fis the input file-ois the output file
After running the above command, a binary file named script will be created.
We can execute the binary file as follows:
Or better we could move the binary file to a directory in the PATH and execute it from anywhere.