[comp.unix.xenix.sco] [k]tar for **IX and **DOS

ucbked@athena.berkeley.edu (Earl H. Kinmonth) (09/16/90)

I will shortly be returning to England and in so doing lose my net
link.  Before I fade into the sunrise I thought I might offer [k]tar to
readers of this group.  [k]tar is an adaptation of an (very) early
version of GNU tar.  It has all the usual tar options (except w) and a
number of (in my opinion) "enhancements" that should be of special
interest two groups: (a) those moving files between DOS and **IX
systems and (b) those downloading tar.Z archives from various ftp
sites.

If you want sources and DOS executable, send e-mail to my domestic US
e-mail address, preferably with a return address of the form x@a.b.c.

The following, from the [k]tar help screen, may spike (or kill) your
interest in the programme.

Caveat:  [k]tar has NOT been tested with tapes.  Anyone want to give me
a tape drive?

==========
ktar [options] [name(s)]
==========
-A        allow absolute names (leading /)
-c        create archive
-C name   change to named directory
-E        estimate number of floppies needed
-f name   archive or extract from named file
-F name   files to archive or extract from named file
-g        generate a uniq name for every file
-G        extract older files under name xxxxxxxx.nnn
          where nnn is a generation number
-h        hint (info) function
-j        report time data and exit
-Jstring  change times according to string
          [-]00h00m0s
-k n      archive device has n kilo-bytes capacity
-K        capitalize directory portion of path names
-m        do NOT restore original modification times
-N        do NOT extract if the local file is newer than
          the archive file
-n        not a tape or pipe (can seek)
          implied by k or [0-9] options
-p        restore original permissions (otherwise set from
          umask variable)
-Pnn      strip n parts of the path name for extraction or
          listing
-Pnn:str  preface the stripped path with a new path defined
          by string
-Q        pause before first floppy
-R        recovery mode, skip bad headers
-T        no time conversions
-t        table of contents
-v        switch.verbose description of files
-x        extract archive
-Z        remove (unlink) each file as it is added to the
          archive [dangerous, use at your own risk]
==========
EXAMPLES (X = Xenix, D = MSDOS)
==========
X     ktar -cvf /dev/fd096ds9 -k 720 .
          archive all files in the current directory and
          its subdirectories to a 720 k floppy
X     ktar -cvf /dev/fd096ds9 -k 720 -F filelist.log
          archive all files named in the file 'filelist.log'
          to a 720 k floppy
D     ktar -xvf a: -k 720
          extract all files from the 720 k archive using
          drive a: 
D     ktar -xvf a: -k 720 -F filelist.log
          extract only the files name in filelist.log
D     ktar -xvf a: -k 720 a.c b.c c.c
          extract only the files named a.c b.c c.c
==========
COPYRIGHT
==========
*
*     This program contains code released to the Public
*     Domain by John Gilmore.  Other portions (c) 1988/1989 by
*     Earl H. Kinmonth, History Department, University of
*     California, Davis, California, 95616.
*
*     All rights reserved!  All liability denied!
*
*     Free use and copying of all or part of this program is
*     permitted and encouraged, provided
*
*     -  no charges other than the cost of reproduction are levied
*     -  the program or portions of it are not used to further
*        CLASSIFIED military research.
*
==========