Subject: v15i078: ARC (PC compression program), v5.21, Part02/05 Newsgroups: comp.sources.unix Sender: sources Approved: rsalz@uunet.UU.NET Submitted-by: hyc@math.lsa.umich.edu Posting-number: Volume 15, Issue 78 Archive-name: arc5.21/part02 #--------------------------------CUT HERE------------------------------------- #! /bin/sh # # This is a shell archive. Save this into a file, edit it # and delete all lines above this comment. Then give this # file to sh by executing the command "sh file". The files # will be extracted into the current directory owned by # you with default permissions. # # The files contained herein are: # # -rw-r--r-- 1 hyc 54144 Jun 13 05:26 Arc521.doc # -rw-r--r-- 1 hyc 7232 Jun 12 19:31 arc.1 # echo 'x - Arc521.doc' if test -f Arc521.doc; then echo 'shar: not overwriting Arc521.doc'; else sed 's/^X//' << '________This_Is_The_END________' > Arc521.doc X X X X X X X X X X X X X ARC X X File Archive Utility X Version 5.20 X X X X X X X X X X X X X X X X X X X X X X X X X X (C)COPYRIGHT 1985,86 X by X System Enhancement Associates, Inc. X ALL RIGHTS RESERVED X X X X X XThis document describes version 5.20 of the ARC file Xutility, which was created by System Enhancement XAssociates, Inc. in October of 1986. X X X TABLE OF CONTENTS X X X XSection Page X X XIntroduction .................................... 1 XUsing ARC ....................................... 3 XARC commands .................................... 5 X Adding files ................................ 5 X Extracting files ............................ 7 X Deleting files .............................. 8 X Listing archive entries ..................... 8 X Running files ............................... 10 X Printing files .............................. 11 X Testing an archive .......................... 11 X Converting an archive ....................... 12 XARC options ..................................... 13 X Suppressing compression ..................... 13 X Backup retention ............................ 14 X Message suppression ......................... 15 X Encryption/Decryption ....................... 17 XRAMdisk support ................................. 18 XMARC ............................................ 19 XARCE ............................................ 20 XVersion numbers ................................. 21 XCommon questions and answers .................... 22 XMaintenance contracts ........................... 24 XRevision history ................................ 25 X Changes in version 3 ........................ 25 X Changes in version 4 ........................ 25 X Changes in version 4.1 ...................... 26 X Changes in version 4.3 ...................... 26 X Changes in version 4.4 ...................... 27 X Changes in version 4.5 ...................... 27 X Changes in version 5.0 ...................... 28 X Changes in version 5.1 ...................... 29 X Changes in version 5.2 ...................... 30 XProgram history and credits ..................... 31 XBulletin boards ................................. 33 XSite licenses ................................... 34 X X X X X X X X X X X X X X INTRODUCTION X X X XARC is the copyrighted property of System Enhancement XAssociates, Inc. You are granted a limited license to Xuse ARC, and to copy it and distribute it, provided Xthat the following conditions are met: X X1) No fee may be charged for such copying and X distribution. X X2) ARC may ONLY be distributed in its original, X unmodified state. X X3) ARC may *not* be distributed, in whole or in part, as X part of any commercial product or service without X the express written permission of System X Enhancement Associates. X X XContributions for the use of this program will be Xappreciated, and should be sent to: X X System Enhancement Associates, Inc. X 21 New Street, Wayne NJ 07470 X XYou may not use this product in a commercial Xenvironment or a governmental organization without Xpaying a license fee of $35. Site licenses and Xcommercial distribution licenses are available. A Xprogram disk and printed documentation are available Xfor $50. See the order form enclosed with this manual Xfor more details. X X X XARC is user supported software. This means that you Xmay copy it freely and give the copies away to anyone Xyou wish, at no cost. They are in turn requested to Xsend in a contribution if they decide to use it. X XThe user supported software concept (often referred to Xas "shareware") is an attempt to provide software at low Xcost. The cost of offering a new product by Xconventional means is staggering, and hence dissuades Xmany independent authors and small companies from Xdeveloping and promoting their ideas. User supported Xsoftware is an attempt to develop a new marketing Xchannel, where products can be introduced at low cost. X X X X XARC Page 1 X If user supported software works, then everyone will Xbenefit. The user will benefit by receiving quality Xproducts at low cost, and by being able to "test Xdrive" software thoroughly before purchasing it. The Xauthor benefits by being able to enter the commercial Xsoftware arena without first needing large sources of Xventure capital. X XBut it can only work with your support. We're not Xjust talking about ARC here, but about all user Xsupported software. If you obtain a user supported Xprogram from a friend or colleague, and are still Xusing it after a couple of weeks, then it is obviously Xworth something to you, and a contribution should be Xsent. X X X XAnd now, back to ARC: X XARC is used to create and maintain file archives. An Xarchive is a group of files collected together into Xone file in such a way that the individual files may Xbe recovered intact. X XARC is different from other archive and library Xutilities in that it automatically compresses the Xfiles being archived, so that the resulting archive Xtakes up a minimum amount of space. X XWhen ARC is used to add a file to an archive it Xanalyzes the file to determine which of three storage Xmethods will result in the greatest savings. These Xthree methods are: X X1) No compression; the file is stored as is. X X2) Repeated-character compression; repeated sequences X of the same byte value are collapsed into a three- X byte code sequence. X X3) Dynamic Lempel-Zev compression; the file is stored X as a series of variable size bit codes which X represent character strings, and which are created X "on the fly". X XNote that since one of the three methods involves no Xcompression at all, the resulting archive entry will Xnever be larger than the original file. X X X X X XARC Page 2 X USING ARC X X X XARC is invoked with a command of the following format: X X ARC [