home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
sosutl12.zip
/
doc
/
extract.man
< prev
next >
Wrap
Text File
|
1993-10-17
|
3KB
|
106 lines
Extract
Description
Extract--extract files from archives or list archive contents.
A REXX script.
Usage
[D:\] extract ARCHIVE [ FILE ... ] [ /jlp? /t DIR ]
Options:
/j Junk directories (ie. don't extract them). With this
switch, files are extracted to the current directory, or
the directory given with /t switch. Can't be used together
with /l or /p.
/l Show archive contents. Output goes to stdout. Can't be
used together with /l, /p, or /t.
/p Extract to stdout. Useful in viewing document files stored
in the archive.
/t DIR
Set directory in which files are extracted. Without the /j
switches, any subdirectories contained in the archive file
will be created under DIR. The space between the switch
and the directory name isn't necessary.
/? Display help page and quit.
NOTE: Extract only chooses the appropriate archiver and forms the
command line which is passed to it; you will still need all the
archivers whose archive files you encounter. However, Extract
makes working with the archivers much more comfortable since you
don't need to remember every switch of every program (or indeed,
remember the actual executable names of the archives).
Note
If you do not want to keep your archiver executables in PATH, you
can modify the line
arcdir = ""
in `extract.cmd' to point to the directory where you keep them.
The value MUST have a trailing backslash (eg. "C:\Bin\Arc\"). If
the string is empty, a normal PATH search is done.
Examples
Suppose you have a file `foo.zoo', which includes the following
files (and subdirectories):
src\foo.c
src\foo.h
src\foo.mak
exe\foo.exe
man\foo.man
README
Copyright
Note: Zoo, Zip, gzip, tar and Compress use slashes instead of
backslashes internally to separate directories, but in the command
line of Extract you should use backslashes--otherwise you'll get
silly messages of unknown switches...
To extract all the files:
[D:\] extract foo.zoo
Extract all the files in `src' subdirectory (ie. `foo.c', `foo.h',
and `foo.mak'); this also makes the subdirectory `src', it it
didn't exist already:
[D:\] extract foo.zoo src\*
The same as above, but doesn't create `src' subdirectory, ie.
files are extracted to the current directory:
[D:\] extract foo.zoo src\* /j
The same as above, but files are extracted to `C:\tmp\thrash'
directory:
[D:\] extract foo.zoo src\* /j /t C:\tmp\thrash
To list the contents of this archive, use:
[D:\] extract foo.zoo /l
To view the `README' file with `more', use:
[D:\] extract foo.zoo README /p |more
To redirect `README' to printer:
[D:\] extract foo.zoo README /p >prn
Version and copyright
Extract v1.1
Copyrigth (C) 1993, SuperOscar Softwares, Tommi Nieminen.