home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 6 File
/
06-File.zip
/
FILE39.ZIP
/
README.OS2
< prev
next >
Wrap
Text File
|
1993-04-11
|
2KB
|
49 lines
This is the readme file for the port to OS/2 1.x--2.x and MSDOS of Ian
Darwin's file(1) command. The UNIX program attempts to determine the
type of file based on the contents. A database of signatures (the magic(4)
file) is used.
Darwin's version has several enhancements over the usual UNIX versions,
including:
1. More flexible magicfile entries.
2. An "ascii magic" routine for keywords which can appear anywhere in the
file.
3. "-z" option will recursively unwind compress'd files to determine
the types.
This OS/2 port has an additional enhancement:
4. DosQ[uery]AppType is used to determine the type (MSDOS, OS/2, 32-bit,
etc.) of an executable or DLL.
QUICK START: Choose the appropriate executable (file.exe for OS/2 2.x,
file-16.exe for OS/2 1.x--2.x, or file-dos.exe for MSDOS). Copy the
file "magic" to one of the following locations:
* /etc/
* directory of the exectable
* a directory in PATH or DPATH
or use the command-line option "-m" to specify the magicfile location.
Now try:
file * or file *.*
Notes:
0. file v3 patchlevel9 is by Ian Darwin (darwin@cs.toronto.edu); see the
readme file.
1. The OS/2 2.x version requires the DLLs from the EMX distribution. If you
do not have these, either retrieve them from ftp-os2.nmsu.edu in
pub/os2/2.x/programming/emx-0.8f/emxdev.zip or use file-16.exe.
2. The magicfile needs more work. There are some other suggestions in
NOTES.OS2. Darwin collects magicfile entries.
3. See the file NOTES.OS2 for additional information on the OS/2 and
MSDOS ports. This is the first port to OS/2 and MSDOS; feedback is welcomed.
--
Darrel Hankerson hankedr@mail.auburn.edu or hank@ducvax.auburn.edu
11 April 1993