home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
archiver
/
shar
/
shar.doc
< prev
next >
Wrap
Text File
|
1989-08-25
|
5KB
|
99 lines
06600000000800
1
2
F0110030
9[............................................................]011
ÇNAME
êsharÇ-createshellarchiveonAtariSTforextractionby
/bin/sh(Unix)orwithêsharÇitself
SYNOPSIS
êsharÇ[[-eo]archive][-abcmsuv][-pprefix][-ddelim]
[files>archive]
DESCRIPTION
êsharÇprintsitsinputfileswithspecialcommandlines
aroundthemtobeusedbytheUnixBourneshell,/bin/sh,or
êsharÇitselftoextractthefileslater.Theoutputcanbe
filteredthroughtheshelltorecreatecopiesofthe
originalfiles.
êsharÇallowsdirectoriestobenamed,andêsharÇprintsthe
necessarycommands(mkdir&cd)tocreatenewdirectories
andfillthem.êsharÇwillnotallowexistingfilestobe
over-writteniftheshellarchiveisextractedwiththe
BourneShell;suchfilesmustberemovedbytheuser.
9[............................................................]011
OPTIONS
-aAlltheoptions.Theoptions:-v-c-b-pXXareimplied.
-bExtractfilesintobasenamessothatfileswithabsolute
pathnamesareputintothecurrentdirectory.This
optionhasstrangeeffectswhendirectoriesare
archived.
-cCheckfilesizeonextractionbycountingcharacters.An
errormessageisreportedtothepersondoingthe
extractionifthesizesdon'tmatch.Onereasonwhythe
sizesmaynotmatchisthatêsharÇwillappendanewline
tocompleteincompletelastlines;êsharÇprintsa
messagethatmentionsaddednewlines.Anotherreason
whythesizesmaynotmatchisthatsomenetworkmail
programsremovenon-whitespacecontrolcharacters.êsharÇ
printsamessagethatmentionscontrolcharactersto
theextractor.
-dUsethisasthe``endoffile''delimiterinsteadofthe
default.Theonlyreasontochangeitisifyoususpect
afilecontainsthedefaultdelimiter:SHAR_EOF.
-eExtractashellarchive.Filesstoredwithinanexisting
shellarchivearewrittentodiskasseperatefiles.
Directoriesarecreatedasneccessary.Alreadyexisting
fileswillnotbeoverwritten.Options-c,-mor-v
specifieduponcreationoftheshellarchivearenot
regarded.
-mResettheexactprotectionmodesoffileswhentheyare
extracted(usingthechmodprogram).Bydefault,the
extractor'sdefaultfilemodesareused,andexecutable
files(e.g.,shellscripts)aremadeexecutable.
-oExtractashellarchivewithoverwrite.Similartothe-e
optionbutalreadyexistingfileswillbeoverwritten.
-pUsethisastheprefixtoeachlineofthearchived
files.Thisistomakesurethatspecialcharactersat
thestartoflinesarenoteatenupbyprogramslike
mailers.Ifthisoptionisused,thefileswillbe
extractedwiththestreameditorsedratherthancatso
itismoreefficientandportabletoavoidsettingthe
prefix,thoughperhapslesssafeifyoudon'tknowwhat
Çisinthefiles.
-sSilentrunning.Allcheckingandextraoutputisinhibi⑨
ted.
-uArchivetheinputfileswiththeuuencodeformatfor
laterextractionwithuudecode.Thiswillallowyouto
sendfileswithcontrolcharactersinthem,butwill
slowdowntheextracting.Youmustbesurethatthe
receivingpartyhasaccesstouudecode.
-vPrintverbosefeedbackmessagesaboutwhatêsharÇisdoing
tobeprintedduringextractionwiththeBourneShell.
Sizesofplainfilesareechoedtoallowasimple
validitycheck.
AUTHOR
RainerKlute(highlybasedonUnixêsharÇbyGaryPerlmanand
STêsharÇbyJ.Altstadt.
LIMITATIONS
Theextractionalgorithmisnottooclever.Itonlyrecogni⑨
zesfilenamesandthefilecontentsassuch.SoêsharÇdoes
notregardanyoftheoptions-c,-mor-viftheywere
specifieduponcreationofthearchive.