Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!ukc!dcl-cs!bath63!pes From: pes@ux63.bath.ac.uk (Smee) Newsgroups: comp.sys.atari.st Subject: Re: Shell Archive Message-ID: <1676@bath63.ux63.bath.ac.uk> Date: Wed, 16-Sep-87 06:04:32 EDT Article-I.D.: bath63.1676 Posted: Wed Sep 16 06:04:32 1987 Date-Received: Sat, 19-Sep-87 18:49:58 EDT References: <20118G15@PSUVM> Reply-To: pes@ux63.bath.ac.uk (Smee) Organization: AUCC c/o University of Bath Lines: 43 A 'shell archive' (or 'shar file') is simply a U**x command script which will (if run on a U**x) take itself apart into one or more (usually) files (usually text files). These files in turn may be plaintext, uuencoded, uuencoded ARC files, etc. If you don't have a handy U**x to take them apart on, they can be (with a bit of pain) taken apart using a text editor. Each contained file will be contained between an invocation of 'sed' (a command-line editor) at top, and an 'end-of-file' indicator probably followed by an 'if' test at bottom. Typically, this looks like: sed 's/^XX//' << \SHAR_EOF >FRED.UUE SHAR_EOF if FRED.UUE (standard redirection) says that this subfile is to be put into a file named FRED.UUE. And the construct: 's/^XX//' says that when making this file, strip the chars XX from the beginning of each line. (Normal editor regular-expression style substitute, really.) Only *really* tricky bit is that some folks use a TAB char in that string (where I've used XX) and TABs sometimes don't survive transmission as such, rather being turned intosome number of spaces. Once you've got the bits out of the shell archive, *then* you UUDECODE/un-ARC/ whatever...