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

news@investor.UUCP ( Bob Peirce) (11/04/88)

In article <2643@nuchat.UUCP> steve@nuchat.UUCP (Steve Nuchia) writes:
>Posting-number: Volume 5, Issue 28
>Submitted-by: "Steve Nuchia" <steve@nuchat.UUCP>
>Archive-name: compress.magic
>
>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.  
>
>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
>
I posted to comp.sources.misc by accident.  This is a repost.

On our system running SysVr2.2, 40223 is 8093 (1F9D hex).  Use "od -x"
on a compressed file to see if your first word is different.

We changed data to file.  We also found a space in front of the '-'
was picked up leading to "compressed file - 16 bits" instead of
"compressed file- 16 bits".

Great idea!  Thanks Steve.

-- 
Bob Peirce, Pittsburgh, PA				 412-471-5320
uucp: ...!{allegra, bellcore, cadre, idis, psuvax1}!pitt!investor!rbp
	    NOTE:  Mail must be < 30K  bytes/message