From: <dsmich@roadrunner.com>
To: guile-user@gnu.org
Subject: file magic
Date: Tue, 1 Nov 2011 10:13:52 -0400 [thread overview]
Message-ID: <20111101141353.XMMDB.2313.root@cdptpa-web14-z01> (raw)
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
next reply other threads:[~2011-11-01 14:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 14:13 dsmich [this message]
2011-11-01 22:50 ` file magic Ludovic Courtès
2011-11-02 16:47 ` dsmich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111101141353.XMMDB.2313.root@cdptpa-web14-z01 \
--to=dsmich@roadrunner.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).