home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 278.lha / File_v1.0 / ReadMe < prev    next >
Text File  |  1989-08-08  |  7KB  |  184 lines

  1.              file v1.0 - Unix-like utility to determine
  2.                        the type of a file
  3.  
  4.                 Copyright 1989 Edwin Hoogerbeets
  5.  
  6.   This code is freely redistributable as long as no charge other than
  7.   reasonable copying fees is levied for it.
  8.  
  9. Usage:
  10.  
  11.   file filename [filename ...]
  12.  
  13.   [Options? We don need no steekeen options!]
  14.  
  15. Notes:
  16.  
  17.   This silly little hack I wrote for no particular reason other than
  18.   boredom in CS classes, where it was mostly written. ;-)
  19.  
  20.   File recognizes the following types of files:
  21.  
  22.     Amiga .font file - File containing the description of what is in
  23.                        a subdirectory of the fonts directory.
  24.                        ex: garnet.font
  25.  
  26.     Amiga .info file - The silly little files you find hanging around
  27.                        in any directory you looked at with the WorkBench.
  28.                        ex: .info
  29.  
  30.     Amiga icon .info file - A disk, drawer, project or tool icon.
  31.                             ex: System.info
  32.  
  33.     Amiga load file - this type includes executables, shared libraries,
  34.                       devices, and loadable font files.
  35.                       They all have the format of an executable, so it
  36.                       is difficult to tell which is which. (anyone have
  37.                       a way of telling? Please mail me if you do)
  38.                       ex: c:Type, arp.library, ramdrive.device, garnet/16
  39.  
  40.     Amiga object file - A file compiled with Lattice C, PDC or A68k.
  41.                         ex: SetFont.o
  42.  
  43.     block compressed xx bit code data - a file compressed with the
  44.                                         compress program.
  45.                                         ex: constitution.Z
  46.  
  47.     commands text - this file was not marked as a script file, but
  48.                     contains commands suitable as a script.
  49.                     ex: FooScript
  50.  
  51.     C source code - file contains constructs that look like C. If these
  52.                     constructs are not found, the file may be mistaken
  53.                     for a ARexx script if the first two characters are
  54.                     `/*'
  55.                     ex: file.c
  56.  
  57.     data - the file contains binary data of an unknown format.
  58.  
  59.     directory - file is a directory
  60.  
  61.  
  62.     empty - the file contains nothing, making it impossible to determine
  63.             what kind of file it was meant to be in its former life.
  64.  
  65.     execute script file - a file meant to be run with execute.
  66.                           ex: s:DPAT
  67.  
  68.     IFF format file - File recognizes the following forms:
  69.  
  70.                        8SVX   instrument file format
  71.                        ANIM   anim file format
  72.                        ACBM   Amiga compressed bit map format
  73.                        ILBM   interleave bit map format
  74.                        SMUS   simple music format
  75.  
  76.     LaTeX source code - input file suitable for the LaTeX document
  77.                         preparation system.
  78.                         ex: resume.tex
  79.  
  80.     Manx 3.6 run-time library - objects compiled with Manx 3.6 and
  81.                                 stuck into a linkable library.
  82.                                 ex: ed32.lib
  83.  
  84.     Manx 3.4 object code
  85.     Manx 3.6 object code - file compiled with Manx 3.4 or 3.6 respectively
  86.                            ex: file.o
  87.  
  88.     Modula II source code - file is source code for any Modula II
  89.                             ex: Primes.mod
  90.  
  91.     SEA ARC compressed archive - an archive compressed with the ARC program.
  92.                                  ex: boff.arc
  93.  
  94.     script file - text file with the script bit set.
  95.                   ex: s:FindOldFiles
  96.  
  97.     shell commands - the file was not labeled as a script, but contains
  98.                      shell commands.
  99.                      ex: s:.cshrc
  100.  
  101.     shell script - the file is a script for the Dillon/Drew shell.
  102.                    It searches for `#!' at the beginning of the file,
  103.                    so please add these to your Dillon/Drew shell scripts.
  104.                    ex: BackUpHD.sh
  105.  
  106.     TeX device independent output file - output of Tex, LaTeX, BibTeX
  107.                                          or AMSTeX.
  108.                                          ex: letter.dvi
  109.  
  110.     TeX source code - a file suitable for input to TeX document formatting
  111.                       system.
  112.                       ex: resume.tex
  113.  
  114.     text - the file contains ascii characters of an unknown format
  115.            ex: ReadMe
  116.  
  117.     uuencoded file - a file that is suitable as input for uudecode
  118.                      ex: file.uue
  119.  
  120.     yacc input file - a file that is suitable as input to the yacc or
  121.                       bison parser generator programs.
  122.                       ex: grammar.y
  123.  
  124.     yacc or lex input file - a file that is either suitable for yacc
  125.                              (bison) or lex. The exact format cannot
  126.                              be determined by file due to its
  127.                              unsophisticatedness. (how's that for a word?)
  128.                              ex: lex.l or hiddengrammar.y
  129.  
  130.     Zoo x.xx archive - an archive made with the zoo program.
  131.                        ex: file.zoo
  132.  
  133. Warning:
  134.  
  135.   This program is a kludge. This program is only a kludge. Had this program
  136.   been real, it would have been a heck of a lot bigger. As it is, it only
  137.   checks the first 484 bytes of a file for format clues, and makes guesses
  138.   as to the probable file type. For binary files, magic numbers found at
  139.   the beginning of the file are checked. For text files, familiar sequences
  140.   are searched for throughout the excerpt to make the guess.
  141.  
  142. Things it May Get Wrong:
  143.  
  144.   - An ARexx script starts with `/*', which, perchance, also start off many
  145.     C programs
  146.  
  147.   - Many TeX or LaTeX files contain "{\n", which are also found in
  148.     C programs
  149.  
  150.   - a binary file may very rarely contain only printable ascii characters
  151.     in the first section of the file, leading file to think it is
  152.     actually a piece of text. (no, your program has not been magically
  153.     transformed into a .font file!)
  154.  
  155. A Comment:
  156.  
  157.   If you have a favourite file format that you would like added to the
  158.   program, send me mail and I will add it. Better yet, send me the
  159.   (freely redistributable) file that is characteristic of the file type.
  160.   Better yet, tell me what the distinguishing characteristic is.
  161.   Well, come to think of it, forget the above, and just send me your
  162.   patched version of file and I will incorperate the changes into the
  163.   official release. Have a nice day. This has been more than one
  164.   comment, hasn't it? I babble sometimes.
  165.  
  166. Files:
  167.  
  168.  ReadMe                    rwed    7111   14  21-May-89 23:21:26
  169.  file                      rwed    9352   19  21-May-89 22:59:15
  170.  file.c                    rwed    8528   17  21-May-89 22:58:10
  171.  makefile                  rwed     337    1  19-May-89 23:29:52
  172. 55 Blocks, 25328 Bytes used in 4 files
  173.  
  174. Please redirect any comments, criticisms or dark chocolate to:
  175.  
  176. Edwin Hoogerbeets (It's a Dutch name. I was born with it... )
  177. Usenet: ehoogerbeets@rose.waterloo.edu (watmath!watrose!ehoogerbeets) or
  178.         edwin@watcsc.waterloo.edu
  179. CIS:    72647,3675 (any time at all)
  180.  
  181.  
  182.  
  183.  
  184.