Shar

Shar

__NOTOC__In the Unix operating system, shar is an abbreviation of "SHell ARchive". A shell archive is a shell script, and executing it will recreate the files. Directories are not recreated. This is a type of self extracting archive file. It can be created with the Unix 'shar' utility. To unarchive the files, only the standard Unix Bourne shell 'sh' is usually required. While the shar format has the advantage of being pure text, it poses a risk due to being executable; hence the older and more general tar file format is usually preferred even for transferring text files. GNU provides its own version of shar in the GNU Sharutils collection.

"unshar" programs have been written for other operating systems but are not always reliable; .shar files are shell scripts and can theoretically do anything that a shell script can do (including using incompatible features of enhanced or workalike shells), limiting their utility outside the Unix world.

VMS_Shar and VMS_Share

In 1987, Michael Bednarek from the IAESR at the University of Melbourne developed a script for a similar purpose in pure DCL for the VMS operating system under the name VMS_Shar version 2. [cite newsgroup
title = shar (sort of) for VMS
author = Michael Bednarek
date = date|1987-06-09
newsgroup = comp.os.vms
id = 1261@murdu.OZ
url = http://groups.google.com.au/groups?selm=1261@murdu.OZ
accessdate = 2008-02-09
]

The main purpose of this script was to allow the distribution of formatted program code through e-mail and Usenet newsgroups because a) mail transfer agents and NNTP server software only allowed printable ASCII characters (32–126); b) they tended to strip leading and trailing blanks and TAB characters; c) and they usually broke lines longer than 80 characters. VMS_SHAR protected leading blanks, and it split long files into parts of less than 16,000 bytes.

Version 4 introduced the protection of trailing blanks using the TPU text editor editor which then became the main engine of the script. Version 5 protected control characters like TAB, ESC, BEL. In 1988, beginning with version 6, the script was then extended by James A. Gray from Xerox [cite newsgroup
title = VMS_SHARE V6.0
author = Jim Gray
date = Date|1988-05-08
newsgroup = comp.os.vms
id = 880508-073131-5929@Xerox
url = http://groups.google.com.au/groups?selm=880508-073131-5929@Xerox
accessdate = 2008-02-09
] . Starting with version 7, Andy Harper from King's College London continued thedevelopment; [cite newsgroup
title = VMS_SHARE version 7
author = Andy Harper
date = Date|1989-07-06
newsgroup = comp.os.vms
id = 8907061417.AA16991@ucbvax.Berkeley.EDU
url = http://groups.google.com.au/groups?selm=8907061417.AA16991@ucbvax.Berkeley.EDU
accessdate = 2008-02-09
] . The current version (as of 2008) is 8.5 (1994) [cite newsgroup
title = Announcing VMS_SHARE 8.5
author = Andy Harper
date = Date|1995-07-05
newsgroup = vmsnet.sources.d
id = 1994Jul5.164105.3667@bay.cc.kcl.ac.uk
url = http://groups.google.com.au/groups?selm=1994Jul5.164105.3667@bay.cc.kcl.ac.uk
accessdate = 2008-02-09
]

ee also

*Archive formats
*List of Unix utilities

References

External links

*
* [http://lib.stat.cmu.edu/general/shar Information about shar files (Carnegie Mellon)]


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Shar — Saltar a navegación, búsqueda En el sistema operativo Unix, shar es una abreviación de SHell ARchive. Un archivo de shell es un shell script, y ejecutarlo volverá a crear los ficheros. Los directorios no se vuelven a crear. Esto es como un… …   Wikipedia Español

  • SHAR'AB — SHAR AB, geographic region between Ibb and Tai zz in southwest yemen , most of it a plain plateau, and on its east side the main san a Dhamār Yarīm route. There were scores of Jewish communities in the region. Their method of study consisted of… …   Encyclopedia of Judaism

  • shar|er — «SHAIR uhr», noun. a person or thing that shares …   Useful english dictionary

  • Shar — Pour les articles homonymes, voir Shar (homonymie). Shar, la Maîtresse de la Nuit, la Chanteuse Nocturne, la Dame de la perdition, ou Les Ténèbres, est une divinité fictive des Royaumes oubliés. Elle est l opposée de Séluné et domine les cavernes …   Wikipédia en Français

  • shar — af·shar; au·shar; shar·da·na; shar·er; shar·gar; shar·ki; shar·pey s; shar·ra; shar; shar·ger; …   English syllables

  • shar — Este artículo o sección necesita referencias que aparezcan en una publicación acreditada, como revistas especializadas, monografías, prensa diaria o páginas de Internet fidedignas. Puedes añadirlas así o avisar al …   Wikipedia Español

  • Shar'ya — Original name in latin Shar’ya Name in other language Shar ja, Shar ya, Shar’ya, Sjarja, Шарья State code RU Continent/City Europe/Moscow longitude 58.36909 latitude 45.51558 altitude 132 Population 29800 Date 2012 01 17 …   Cities with a population over 1000 database

  • Shar — Original name in latin Shar Name in other language CHARSK, Charsk, Charskiy, Shar, ЧАРСК State code KZ Continent/City Asia/Almaty longitude 49.58559 latitude 81.04852 altitude 340 Population 9087 Date 2012 02 28 …   Cities with a population over 1000 database

  • shar — I. see shar II. noun see shari a * * * shar obs. f. share; obs. pa. tense of shear v …   Useful english dictionary

  • SHAR — • SHell ARchiver • shar Shell Archiv UNIX spezifische Abspeicherung von Dateien mit einem Shell Kommando Kopf, dessen Ausführung die Dateien extrahiert und ggf. übersetzt und installiert http://www.desy.de/cgi bin/man cgishar …   Acronyms

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”