:man| Alphabetical   Categories   About us 
 
SHAR (1) | General commands | Unix Manual Pages | :man

NAME

shar - create a shell archive of files

CONTENTS

Synopsis
Description
Examples
See Also
History
Bugs

SYNOPSIS

shar

DESCRIPTION

The shar command writes a sh(1) shell script to the standard output which will recreate the file hierarchy specified by the command line operands. Directories will be recreated and must be specified before the files they contain (the find(1) utility does this correctly).

The shar command is normally used for distributing files by ftp(1) or mail(1).

EXAMPLES

To create a shell archive of the program ls(1) and mail it to Rick:
cd ls
shar ‘find . -print‘ | mail -s "ls source" rick

To recreate the program directory:
mkdir ls
cd ls
...
<delete header lines and examine mailed archive>
...
sh archive

SEE ALSO

compress(1), mail(1), tar(1), uuencode(1)

HISTORY

BUGS

sh(1).

 
Created by Blin Media, 2008-2013