IPB
>  Man Pages > Unix > FreeBSD 6.2 > Section 1 > shar man page

shar man page

Section 1 - FreeBSD 6.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


SHAR(1)                 FreeBSD General Commands Manual                SHAR(1)


NAME

     shar -- create a shell archive of files


SYNOPSIS

     shar file ...


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

     The shar command appeared in 4.4BSD.


BUGS

     The shar command makes no provisions for special types of files or files
     containing magic characters.  The shar command cannot handle files with-
     out a newline ('\n') as the last character.

     It is easy to insert trojan horses into shar files.  It is strongly rec-
     ommended that all shell archive files be examined before running them
     through sh(1).  Archives produced using this implementation of shar may
     be easily examined with the command:

           egrep -v '^[X#]' shar.file

FreeBSD 6.2                      June 6, 1993                      FreeBSD 6.2


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 19 19:58:03 BST 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5327 hits)
(openSUSE 10.2)

svn man page (5200 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4869 hits)
(Solaris 10 11_06)

CPAN man page (4604 hits)
(Suse Linux 10.1)

ssh man page (4341 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2865 hits)
(Solaris 10 11_06)

netcat man page (2705 hits)
(Suse Linux 10.1)

pprosetup man page (2481 hits)
(Solaris 10 11_06)

startproc man page (2470 hits)
(Suse Linux 10.1)

signal man page (2401 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Area :: Electronic Consultancy, UK :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum