Create a shell archive. More information: https://www.gnu.org/software/sharutils/manual/sharutils.html.
shar --vanilla-operation path/to/file1 path/to/file2 ... > path/to/archive.sh
shar --compactor xz path/to/file1 path/to/file2 ... > path/to/archive.sh
uuencode
everything):shar --uuencode path/to/file1 path/to/file2 ... > path/to/archive.sh
uuencode
nothing):shar --text-files path/to/file1 path/to/file2 ... > path/to/archive.sh
shar --archive-name "My files" --cut-mark path/to/file1 path/to/file2 ... > path/to/archive.sh