home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff287.lzh
/
UnShar
/
unshar.doc
< prev
next >
Wrap
Text File
|
1989-12-06
|
3KB
|
67 lines
UNSHAR(1) AMIGA Programmer's Manual UNSHAR(1)
1mNAME
0munshar - extracts files from shar archives
1mSYNOPSIS
0munshar {-overwrite} file1 file2 ...
1mDESCRIPTION
0mUnshar is a utility which extracts files from the ubiquitous
Unix shar archives. It has the following advantages over
existing unshar utilities:
- Small and fast
- Handles many cat and sed formats
- Allows extraction of subdirectories
- Understands ./file type filenames
- Exits cleanly with CTRL-C
The total code size is slightly under 3.5K, for those with
packed C directories. It treats quotes and imbedded escape
sequences intelligently and handles all the cat and sed
formats I've ever seen, including sed commands which strip
off more than one letter. There may be some formats it
won't handle, but I've yet to find them.
Invoke unshar with as many archive filenames as you like.
All the files in each archive will be extracted into the
current directory. If a file already exists, unshar asks
you how you want to handle it. Entering `Y' will overwrite
the existing file with the version in the archive, `N' will
skip past the file without extracting it, and `A' will
overwrite this file and any other existing files without
prompting you again. Including the -o flag on the command
line causes files to always be overwritten.
1mOPERATION
0mUnshar scans through each archive specified on the command
line, looking for lines beginning with `cat' or `sed'. All
other lines are ignored. In particular, `echo' lines are
not echoed. This way, you don't get a load of messages
which are in any case fairly meaningless, because the
operations they are describing are unsupported.
When a shar archive contains a file for which a full
pathname is given (as in source/file.c for example) unshar
will create whatever directories are necessary. It also
strips off leading /'s and ./'s, to make filenames
understandable by AmigaDOS.
1mHISTORY
0mV1.0 First release.
V1.1 Added support for some more unusual uses of sed.
Increased speed, and reduced size slightly.
Fixed bug that truncated lines longer than 80 chars.
1mAUTHOR
0mEddy Carroll
EMAIL: ecarroll@vax1.tcd.ie
Copyright Eddy Carroll 1989 -1-