Path: utzoo!attcan!uunet!wyse!vsi1!ames!mailrus!cwjcc!hal!ncoast!news@investor.UUCP From: news@investor.UUCP ( Bob Peirce) Newsgroups: comp.sources.bugs Subject: Re: v05i028: /etc/magic lines for compress Message-ID: <1033@investor.UUCP> Date: 15 Nov 88 00:22:57 GMT Sender: allbery@ncoast.UUCP Reply-To: news@investor.UUCP ( Bob Peirce) Organization: Cookson, Peirce & Co., Pittsburgh, PA Lines: 29 In article <2643@nuchat.UUCP> steve@nuchat.UUCP (Steve Nuchia) writes: >Posting-number: Volume 5, Issue 28 >Submitted-by: "Steve Nuchia" >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 > We have SysVr2.2 and the 40223 needed to be changed to 8093 (1F9D hex). Use "od -x" on a compressed file to see if your first word is different. We also found a space in front of the '-' would be included in the output leading to "compressed data - 16 bits" instead of "compressed data- 16 bits". Much thanks for the idea. -- Bob Peirce, Pittsburgh, PA 412-471-5320 uucp: ...!{allegra, bellcore, cadre, idis, psuvax1}!pitt!investor!rbp NOTE: Mail must be < 30K bytes/message