Is it possible to write a bash script, which would contain a binary executable program inside?
I mean a script, which would contain a dump of an executable in a textual form, which will be dumped back to an executable by this script when it is executed?
I would love to know a solution, which will work out of the box without a need of installing additional packages. Is it possible?
Thanks!
I had to make a installer script to deploy it on a machine that did not even have tar, and I ended embedding busybox (for tar and gunzip) and the tarball to deploy on a shell script. I did it the dd way: