ksb@mentor.cc.purdue.edu (Kevin Braunsdorf) (03/04/91)
I'd like a canonical list of file extensions and their meanings under UNIX. I'd also like the common name for the interp or compiler, the magic number, and the comment characters used in the file. Like: Name Contains Given to Magic# Comments dot-c C source cc - /* X */ dot-Z compressed data zcat 0x9d1f - Please send any data you might have to me, if you could format it as: name:contents:processor:magic#:comments so I can feed it to tbl(1) life would be even better. This is my first (public) draft (including some specail file names) which omits the last 3 cols, because I'm not so sure about all of them: I'll post a new version in about 30 days. Files: a.out default ld output file core a post mortem from a running program Makefile a make(1) makefile Valid test suite description for valid gmon.out executable file makefile a make(1) makefile valid test suite description for valid Extenders: comma-v RCS delta file dot-1 manual page dot-1c manual page dot-1g dot-1l dot-1u dot-1v dot-2 dot-2l dot-3 dot-3c dot-3f dot-3l dot-3m dot-3n dot-3s dot-3x dot-4 dot-4f dot-4l dot-4n dot-4p dot-5 dot-5l dot-6 dot-6l dot-7 dot-7l dot-8 dot-8c dot-8l dot-8v ... dot-a ar archive dot-C C++ source dot-C compacted data dot-c C source dot-e efl source dot-f FORTRAN source dot-h C header file dot-i C header file dot-l lex input or LISP source dot-m Modula 2 source or mkcmd input dot-o object code dot-p Pascal source dot-r ratfor source dot-s asm source dot-t nroff/troff source dot-v test suite description for valid dot-y yacc input dot-z compacted data dot-Z compressed data dot-el emacs lisp source dot-ln lint library dot-m2 Modula 2 source or mkcmd input dot-m4 m4 source dot-me manual page dot-mk a make(1) makefile dot-mm manual page dot-ms manual page dot-ph perl header file dot-pl perl source dot-ps PostScript source dot-sh sh commands dot-uu uuencoded data dot-csh csh commands dot-dir dbm directory or data dot-dvi TeX output dot-f77 FORTRAN source dot-ksh ksh commands dot-man manual page dot-nro nroff/troff source dot-out executable file dot-pag dbm directory or data dot-tar tar archive dot-uue uuencoded data dot-xbm an X bitmap image dot-zoo zoo archive dot-diff diff output, patch input dot-make a make(1) makefile dot-shar shell archive dot-tcsh tcsh commands dot-patch diff output, patch input Maybes dot-bg a BBN BitGraph dot-g3 a G3 FAX image dot-go GraphOn graphics dot-lj an HP LaserJet image dot-are a McARE file dot-fbm an FBM image dot-gif a GIF image dot-hip a Human Information Processing file dot-img a GEM image dot-mgr a CMU WM Raster dot-mtv Mark VanDeWettering's ray tracer input dot-pbm Jef Poskanzer's portable bitmap dot-pgm Jef Poskanzer's portable grey dot-ppm Jef Poskanzer's portable bitmap dot-ptx Printronix printer graphics dot-qrt QRT ray tracer input dot-rle a Utah RLE image dot-tga a TrueVision Targa image dot-upc UPC codes dot-xpm an X Pixmap dot-xwd an X Window dump dot-csun a Sun Rasterfile dot-face a Faces Project image dot-fits a Flexible Image Transport System file dot-icon a Sun icon image or an Icon source dot-ilbm an Amiga IFF ILBM dot-macp a MacPaint image dot-tiff a TIFF image dot-brush a Xerox Doodle Brush -- "We'll crash and burn, it's hard to look away!!" kayessbee, Kevin Braunsdorf, ksb@cc.purdue.edu, pur-ee!ksb, purdue!ksb
Dan_Jacobson@ATT.COM (03/05/91)
>>>>> On 3 Mar 91 22:35:41 GMT, ksb@mentor.cc.purdue.edu (Kevin Braunsdorf) said:
Kevin> I'd like a canonical list of file extensions and their meanings under
Kevin> UNIX.
Well, here's GNU Emacs' default auto-mode-alist...
auto-mode-alist's value is
(
("\\.text$" . text-mode)
("\\.c$" . c-mode)
("\\.h$" . c-mode)
("\\.tex$" . TeX-mode)
("\\.el$" . emacs-lisp-mode)
("\\.scm$" . scheme-mode)
("\\.l$" . lisp-mode)
("\\.lisp$" . lisp-mode)
("\\.f$" . fortran-mode)
("\\.mss$" . scribe-mode)
("\\.pl$" . prolog-mode)
("\\.TeX$" . TeX-mode)
("\\.sty$" . LaTeX-mode)
("\\.bbl$" . LaTeX-mode)
("\\.bib$" . text-mode)
("\\.article$" . text-mode)
("\\.letter$" . text-mode)
("\\.texinfo$" . texinfo-mode)
("\\.lsp$" . lisp-mode)
("\\.prolog$" . prolog-mode)
("^/tmp/Re" . text-mode)
("^/tmp/fol/" . text-mode)
("/Message[0-9]*$" . text-mode)
("\\.y$" . c-mode)
("\\.cc$" . c-mode)
("\\.scm.[0-9]*$" . scheme-mode)
("[]>:/]\\..*emacs" . emacs-lisp-mode)
("\\.ml$" . lisp-mode)
)
Documentation:
Alist of filename patterns vs corresponding major mode functions.
Each element looks like (REGEXP . FUNCTION).
Visiting a file whose name matches REGEXP causes FUNCTION to be called.
--
Dan_Jacobson@ATT.COM Naperville IL USA +1 708 979 6364