On Tue, 22 Aug 1995 08:55:48 +0200, Frode Tenneboe said: > Then you also might define the first 512 characters of a text file as a > magic number too.
:-) > And "#!" doesn't > uniqely distinguish a file - on the other hand a line starting with > "#!" does. I don't know what you mean. If the file starts with "#!" then that certainly does give a very strong hint as to what the file is. In the same manner, if the file starts with "%!" then you know it's probably a PostScript document (and that _is_ in /etc/magic). If it's at the start of the file and if any utility other than "file" looks at it to find out what the file is then it's a magic number as far as I'm concerned. imc

