Name

shar

Synopsis

    shar file ...

Produce a Shell archive. The output is a shell script, which when run with a Bourne-compatible shell, will extract the original files and directories. It is useful for distributing files via electronic mail or ftp. All directories should be named on the command line before regular files so that they will be re-created correctly.

Tip

This version of shar is very simple. It cannot handle binary data files, and may not be robust in the face of unusual filenames either.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.