0707070000020055551006440000000000000000010526510002561552300000500000000003Size20 07070700000200723410064400000000000000000105234500025615057000006000000034161.arc AAAARRRRCCCC((((1111)))) UUUUNNNNIIIIXXXX 5555....0000 AAAARRRRCCCC((((1111)))) NNNNAAAAMMMMEEEE arc - file archive utility SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS arc keyword archive [ file...] DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN _a_r_c is a file archive utility designed to make access to ar(1) formatted archives easy for the average user. arc allows the user to list the files in an archive, as well as move files into and out of the archive with ease. The user can also print the contents of an archived file, as well as update or delete files in the archive with ease. arc keywords are as follows: in - used to place files in an archive. If the archive does not exist, one will be created. out - extracts a copy of file(s) from the archive, leaving the archive unchanged. Files will be writtin into the current working directory. delete - removes file(s) from an archive. Be sure to extract a copy of the file using (out) before deleting it, or the file will be lost forever. list - list the files contained in the archive(s). Multiple archive names may be given with this command. print - prints contents of file(s) in archive. For command line examples, type arc with no arguments. NNNNOOOOTTTTEEEESSSS Care should be taken when using wildcards for filenames, so you do not attempt to archive the archive into itself. You may find it safer to set up your own archive directory, to keep your archives in. SSSSEEEEEEEE AAAALLLLSSSSOOOO ar(1) 0707070000020072371006440000000000000000010664550002562046200000600000000126Files./Size ./1.arc ./Files ./Install ./MAKEcpio ./MAKEflop ./Name ./Remove ./arc.sh ./man 0707070000020072531006440000000000000000010521440002611127300001000000001736Install# --------------------------------------------------------------------- # Install script for Archive Management # 7 Mar 87 # Susan M. Woodbury # --------------------------------------------------------------------- #Let them know we've started echo "Installing `cat Name` \n" echo MNAME=`uuname -l` cat < /dev/null 2>&1 chmod +x ${BINDIR}/man chown bin ${BINDIR}/man chgrp bin ${BINDIR}/man fi ln 1.arc ${MANDIR}/1.arc message -i "A primitive man(1) command has been installed. man(1) is a shell script in $BINDIR. List it for more information.\n\nTouch to continue" echo "Installing arc.sh files /usr/lbin.\n" ln arc.sh /usr/lbin/arc.sh echo Installation Complete. sleep 15 0707070000020072471007740000000000000000010677140002561616200001100000000040MAKEcpiocat Files | cpio -ocBv > ARC+IN 0707070000020072501007740000000000000000010677150002561614300001100000000061MAKEflopcat Files | cpio -ocBv > /dev/rfp021 dismount -f 0707070000020072351006440000000000000000010524750002561623200000500000000043NameArchive Manager V2.0 via THE STORE 0707070000020072331007550000000000000000010523760002561542100000700000000046Removerm /usr/man/1.arc rm /usr/lbin/arc.sh 0707070000020055571007550001700000000000010500540002561756000000700000004054arc.sh#arc v1.0 #Written by Daniel Kays # #PURPOSE: Easy storage and retrieval of files in ar(1) formatted archives # #This shell script is considered by the author as public domain #in that you may use it, copy it, pass it around, and enjoy its benifits. #all I ask is that you leave my name on it. # #Written on the 3B1 AT&T UNIX PC, and now being used on several machines, #such as the NCR Tower-XP, AT&T 3B20 and many others. # #Comments or suggestions for improvements, or job offers welcome... #Daniel Kays #3701 Stevens #Sand Springs, Okla. 74063 #(918) 241-4214 #UUCP: ihnp4!okstate!svo!gene!dan # if [ "$1" = "" ] then echo " USAGE: arc [in || out || delete || print ] archive file... arc [ list ] archive1 [archive2] [archivexx] examples: arc in cprogs.a dog.c cat.c mouse.c ** puts dog.c cat.c mouse.c in cprogs.a ** arc out cprogs.a barchart.c ** extracts copy of barchart.c from cprogs.a ** arc delete cprogs.a alians.c ** deletes alians.c from archive file cprogs.a ** arc print cprogs.a alians.c ** prints contents of the file alians.c that is stored in archive file cprogs.a ** arc list cprogs.a /usr/lib/libcurses.a /lib/*.a ** will list the contents of ** ** archives cprogs.a /usr/lib/libcurses.a and all ** ** of the archives in /lib directory ** " exit fi echo " arc V2.0 Running..... If you have any problems, Please Call Dan at (918) 241-4214 ---------------------------------------------------------------------------- " if [ "$1" = "in" ] then arkfile=$2;shift;shift ar rv "$arkfile" $* exit fi if [ "$1" = "out" ] then arkfile=$2;shift;shift ar xv "$arkfile" $* exit fi if [ "$1" = "list" ] then shift for i do echo " ********************* $i ********************* " ar t $i done exit fi if [ "$1" = "delete" ] then arkfile=$2;shift;shift ar dv "$arkfile" $* exit fi if [ "$1" = "print" ] then arkfile=$2;shift;shift for i do echo " *********************** $i *********************** " ar p "$arkfile" $i done exit fi echo " Invalid Option... type < arc > with no arguments for Usage Message... " 0707070000020072521007750000000000000000010521420002561764400000400000000616manif [ $# -eq 1 ] then if [ -s /usr/man/1.$1 ] then cat /usr/man/1.$1 exit 0 else echo "$0: cannot find /usr/man/1.$1" >&2 exit 1 fi fi echo "Usage: $0 command_name Only one command name may be specified. This is not a full implementation of the man command as this machine does not have many manual pages. For a list of manual pages available, list the /usr/man directory" >&2 exit 2 0707070000020072521007750000000000000000010521420002561764400001300000000000TRAILER!!!i echo " arc V2.0 Running..... If you have any problems, Please Call Dan at (918) 241-4214 ---------------------------------------------------------------------------- " if [ "$1" = "in" ] then arkfile=$2;shift;shift ar rv "$arkfile" $* exit fi if [ "$1" = "out" ] then arkfile=$2;shift;shift ar xv "$arkfile" $* exit fi if [ "$1" = "list" ] then shift for i do echo " ********************* $i ********************* " ar t $i done exit fi if [ "$1" = "delete" ] then arkfile=$2;shift;shift ar dv "$arkfile" $* exit fi if [ "$1" = "print" ] then arkfile=$2;shift;shift for i do echo " *********************** $i *********************** " ar p "$arkfile" $i done exit fi echo " Invalid Option... type < arc > with no arguments for Usage Message... " 0707070000020072521007750000000000000000010521420002561764400000400000000616manif [ $# -eq 1 ] then if [ -s /usr/man/1.$1 ] then cat /usr/man/1.$1 exit 0 else echo "$0: cannot find /usr/man/1.$1" >&2 exit 1 fi fi echo "Usage: $0 command_name Only one command name may be specified. This is not a full implementation of the man command as this machine does not have many manual pages. For a list of manual pages available, list the /usr/man directory" >&2 exit 2 0707070000020072521007750000000000000000010521420002561764400001300000000000TRAILER!!!i echo " arc V2.0 Running..... If you have any problems, Please Call Dan at (918) 241-4214 ---------------------------------------------------------------------------- " if [ "$1" = "in" ] then arkfile=$2;shift;shift ar rv "$arkfile" $* exit fi if [ "$1" = "out" ] then arkfile=$2;shift;shift ar xv "$arkfile" $* exit fi if [ "$1" = "list" ] then shift for i do echo " ********************* $i ********************* " ar t $i done exit fi if [ "$1" = "delete" ] then arkfile=$2;shift;shift ar dv "$arkfile" $* exit fi if [ "$1" = "print" ] then arkfile=$2;shift;shift for i do echo " *********************** $i *********************** " ar p "$arkfile" $i done exit fi echo " Invalid Option... type < arc > with no arguments for Usage Message... " 0707070000020072521007750000000000000000010521420002561764400000400000000616manif [ $# -eq 1 ] then if [ -s /usr/man/1.$1 ] then cat /usr/man/1.$1 exit 0 else echo "$0: cannot find /usr/man/1.$1" >&2 exit 1 fi fi echo "Usage: $0 command_name Only one command name may be specified. This is not a full implementation of the man command as this machine does not have many manual pages. For a list of manual pages available, list the /usr/man directory" >&2 exit 2 0707070000020072521007750000000000000000010521420002561764400001300000000000TRAILER!!!i echo " arc V2.0 Running..... If you have any problems, Please Call Dan at (918) 241-4214 ---------------------------------------------------------------------------- " if [ "$1" = "in" ] then arkfile=$2;shift;shift ar rv "$arkfile" $* exit fi if [ "$1" = "out" ] then arkfile=$2;shift;shift ar xv "$arkfile" $* exit fi if [ "$1" = "list" ] then shift for i do echo " ********************* $i ********************* " ar t $i done exit fi if [ "$1" = "delete" ] then arkfile=$2;shift;shift ar dv "$arkfile" $* exit fi if [ "$1" = "print" ] then arkfile=$2;shift;shift for i do echo " *********************** $i *********************** " ar p "$arkfile" $i done exit fi echo " Invalid Option... type < arc > with no arguments for Usage Message... " 0707070000020072521007750000000000000000010521420002561764400000400000000616manif [ $# -eq 1 ] then if [ -s /usr/man/1.$1 ] then cat /usr/man/1.$1 exit 0 else echo "$0: cannot find /usr/man/1.$1" >&2 exit 1 fi fi echo "Usage: $0 command_name Only one command name may be specified. This is not a full implementation of the man command as this machine does not have many manual pages