home *** CD-ROM | disk | FTP | other *** search
- NAME
- Magic Numbers
-
- PURPOSE
- The Corel WordPerfect Magic Numbers dialog
- box lets you decide whether or not you want
- the Installation program 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
- provides a custom wpmagic file in the Corel
- WordPerfect shlib10 directory that lists the
- specific magic numbers for various types of
- Corel WordPerfect files.
-
- STEPS
- To add the lines from the Corel WordPerfect
- wpmagic file to the UNIX /etc/magic file,
-
- 1 Choose "Update the magic file." or...
- Choose "DO NOT update the magic file."
- to leave the UNIX /etc/magic file
- unchanged.
-
- If you choose No, you can still access the
- Corel WordPerfect specific entries in the
- wpmagic file using the following file
- command:
-
- file -m /<WPdir>/shlib10/wpmagic <file>
-
- The /<WPdir> in the file command
- represents the full pathname of the Corel
- WordPerfect installation directory. The
- <file> 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 *
-
-
-