SHAR(1) UNIX Programmer's Manual SHAR(1) NNAAMMEE shar - create a shell archive of files SSYYNNOOPPSSIISS sshhaarr ffiillee ...... DDEESSCCRRIIPPTTIIOONN _S_h_a_r writes an _s_h(1) shell script to the standard output which will recreate the file hierarchy specified by the com- mand line operands. Directories will be recreated and must be specified before the files they contain. _S_h_a_r is normally used for distributing small numbers of files by _f_t_p(1) or _m_a_i_l(1). SSEEEE AALLSSOO compress(1), mail(1), uuencode(1), tar(1) BBUUGGSS _S_h_a_r makes no provisions for special types of files or files containing magic characters. It is easy to insert trojan horses into _s_h_a_r files. It is strongly recommended that all shell archive files be exam- ined before running them through _s_h(1). Archives produced using this implementation of _s_h_a_r may be easily examined with the command: grep -v '^X' program.shar EEXXAAMMPPLLEESS To create a shell archive of the program _l_s(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 Printed 7/27/90 1Q 1