Create a shell archive with Shar to package multiple files into a single executable script. Compress and share files easily on Linux and macOS. Free online tool, no registration required.

shar

Create a shell archive. More information: https://manned.org/shar.

  • Create a shell script that when executed extracts the given files from itself:

shar {{path/to/file1 path/to/file2 ...}} > {{path/to/archive.sh}}