[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file magic
From: |
dsmich |
Subject: |
file magic |
Date: |
Tue, 1 Nov 2011 10:13:52 -0400 |
Greetings Guilers,
The other day I happened to run the file command on some .go files, and they
show up as the rather unhelpful "data". So I added some bits to my /etc/magic
file:
0 string GOOF---- Guile Object
>8 string LE little endian
>8 string BE big endian
>11 byte 0x34 32bit
>11 byte 0x38 64bit
>13 regex [0-9.]+ v%s
Much nicer.
I'm on a Debian system, and /etc/magic is there for the editing of local
customizations like this. Not sure if that's possible on other systems. Sure
would be nice if this could be updated at install time.
-Dale