home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WordPerfect for Linux Bible
/
WP4LinuxBible.iso
/
readme
/
readme.mg1
< prev
next >
Wrap
Text File
|
1999-06-25
|
1KB
|
42 lines
Corel WordPerfect Magic Numbers
During installation, you chose whether or not to
add a list of Corel WordPerfect magic numbers to
the UNIX /etc/magic file, so that the UNIX file
command can list Corel WordPerfect file types.
The UNIX file command determines file types by
testing for certain numbers (called "magic"
numbers) in file headers. The UNIX /etc/magic
file contains the system list of magic numbers
and the types of files they represent.
The file header of every Corel WordPerfect file
includes the magic number 377WPC, plus another
number that identifies the file more specifically.
Corel WordPerfect includes a custom wpmagic file
in the shlib10 directory that lists
the specific magic numbers for various types of
Corel WordPerfect files.
If you choose No during installation, you can
still access the Corel WordPerfect entries in
the wpmagic file using the following file
command:
file -m /<WPdir>/shlib10/wpmagic <filename>
The /<WPdir> in the file command represents the
full path to the Corel WordPerfect installation
directory. The <filename> can include wildcard
characters. You can, for example, list the file
types of all files in a directory, including
Corel WordPerfect files, using the following
command:
file -m /<WPdir>/shlib10/wpmagic *
To make the Corel WordPerfect entries
permanently available, append the wpmagic
file to the end of the UNIX /etc/magic file.