shar

Create a shell archive. More information: <https://manned.org/man/freebsd/shar>.

Install

All systems
curl cmd.cat/shar.sh
Debian Debian
apt-get install sharutils
Ubuntu
apt-get install sharutils
Alpine
apk add sharutils
Arch Arch Linux
pacman -S sharutils
image/svg+xml Kali Linux
apt-get install sharutils
CentOS
yum install sharutils
Fedora
dnf install sharutils
Windows (WSL2)
sudo apt-get update sudo apt-get install sharutils
Raspbian
apt-get install sharutils
Docker
docker run cmd.cat/shar shar powered by Commando

Create a shell archive. More information: <https://manned.org/man/freebsd/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

© tl;dr; authors and contributors