home *** CD-ROM | disk | FTP | other *** search
/ WordPerfect for Linux Bible / WP4LinuxBible.iso / readme / readme.mg1 < prev    next >
Text File  |  1999-06-25  |  1KB  |  42 lines

  1. Corel WordPerfect Magic Numbers
  2.  
  3. During installation, you chose whether or not to
  4. add a list of Corel WordPerfect magic numbers to
  5. the UNIX /etc/magic file, so that the UNIX file
  6. command can list Corel WordPerfect file types.
  7.  
  8. The UNIX file command determines file types by
  9. testing for certain numbers (called "magic"
  10. numbers) in file headers.  The UNIX /etc/magic
  11. file contains the system list of magic numbers
  12. and the types of files they represent.
  13.  
  14. The file header of every Corel WordPerfect file
  15. includes the magic number 377WPC, plus another
  16. number that identifies the file more specifically.
  17. Corel WordPerfect includes a custom wpmagic file
  18. in the shlib10 directory that lists
  19. the specific magic numbers for various types of
  20. Corel WordPerfect files.
  21.  
  22. If you choose No during installation, you can
  23. still access the Corel WordPerfect entries in
  24. the wpmagic file using the following file
  25. command:
  26.  
  27.   file  -m  /<WPdir>/shlib10/wpmagic  <filename>
  28.  
  29. The /<WPdir> in the file command represents the
  30. full path to the Corel WordPerfect installation
  31. directory.  The <filename> can include wildcard
  32. characters.  You can, for example, list the file
  33. types of all files in a directory, including
  34. Corel WordPerfect files, using the following
  35. command:
  36.  
  37.   file  -m  /<WPdir>/shlib10/wpmagic  *
  38.  
  39. To make the Corel WordPerfect entries
  40. permanently available, append the wpmagic
  41. file to the end of the UNIX /etc/magic file.
  42.