home *** CD-ROM | disk | FTP | other *** search
/ WordPerfect for Linux Bible / WP4LinuxBible.iso / shared / h_mgic < prev    next >
Text File  |  1999-06-25  |  2KB  |  57 lines

  1. NAME
  2.   Magic Numbers
  3.  
  4. PURPOSE
  5.   The Corel WordPerfect Magic Numbers dialog
  6.   box lets you decide whether or not you want
  7.   the Installation program to add a list of
  8.   Corel WordPerfect magic numbers to the UNIX
  9.   /etc/magic file so that the UNIX file
  10.   command can list Corel WordPerfect file
  11.   types.
  12.  
  13.   The UNIX file command determines file types
  14.   by testing for certain numbers (called
  15.   "magic" numbers) in file headers.  The UNIX
  16.   /etc/magic file contains the system list of
  17.   magic numbers and the types of files they
  18.   represent.
  19.  
  20.   The file header of every Corel WordPerfect
  21.   file includes the magic number 377WPC, plus
  22.   another number that identifies the file
  23.   more specifically.  Corel WordPerfect
  24.   provides a custom wpmagic file in the Corel
  25.   WordPerfect shlib10 directory that lists the
  26.   specific magic numbers for various types of
  27.   Corel WordPerfect files.
  28.  
  29. STEPS
  30.   To add the lines from the Corel WordPerfect
  31.   wpmagic file to the UNIX /etc/magic file,
  32.  
  33.   1  Choose "Update the magic file." or...
  34.      Choose "DO NOT update the magic file."
  35.      to leave the UNIX /etc/magic file
  36.      unchanged.
  37.  
  38.   If you choose No, you can still access the
  39.   Corel WordPerfect specific entries in the
  40.   wpmagic file using the following file
  41.   command:
  42.  
  43.     file -m /<WPdir>/shlib10/wpmagic <file>
  44.  
  45.   The /<WPdir> in the file command
  46.   represents the full pathname of the Corel
  47.   WordPerfect installation directory.  The
  48.   <file> can include wildcard characters.
  49.   You can, for example, list the file types
  50.   of all files in a directory, including
  51.   Corel WordPerfect files, using the
  52.   following command:
  53.  
  54.     file -m /<WPdir>/shlib10/wpmagic *
  55.  
  56.  
  57.