Path: utzoo!attcan!uunet!husc6!bbn!rochester!pt.cs.cmu.edu!cadre!pitt!darth!investor!news From: news@investor.UUCP ( Bob Peirce) Newsgroups: comp.sources.d Subject: Re: v05i028: /etc/magic lines for compress Message-ID: <1034@investor.UUCP> Date: 3 Nov 88 19:37:07 GMT References: <2643@nuchat.UUCP> Reply-To: rbp@investor.UUCP (Bob Peirce #74) Organization: Cookson, Peirce & Co., Pittsburgh, PA Lines: 30 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 > 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