[comp.sources.misc] v05i028: /etc/magic lines for compress

steve@nuchat.UUCP (Steve Nuchia) (10/31/88)

Posting-number: Volume 5, Issue 28
Submitted-by: "Steve Nuchia" <steve@nuchat.UUCP>
Archive-name: compress.magic

This is one of those little throw-away things that normally
don't get posted.  It was pointed out to me recently that
we need to make an extra effort to get this kind of stuff
out, so here it is.

If you have a file(1) compatible with the one in sysVr3
adding the following lines to /etc/magic will make it
recognize compressed files.  I was motivated to add this
when I imported a bunch of files from BSD systems and the .Zs
all got lopped off.


0	short		40223		compressed data
>2	byte		<0200		- %d bits
>2	byte		0214		- 12 bits
>2	byte		0215		- 13 bits
>2	byte		0220		- 16 bits

-- 
Steve Nuchia	    | [...] but the machine would probably be allowed no mercy.
uunet!nuchat!steve  | In other words then, if a machine is expected to be
(713) 334 6720	    | infallible, it cannot be intelligent.  - Alan Turing, 1947