summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2023-04-18 16:36:31 +0000
committerChristos Zoulas <christos@zoulas.com>2023-04-18 16:36:31 +0000
commit9a458a2a840be5b8cba276c0c71da731fbb7cf46 (patch)
tree784e0bf0b65b494c81f6b34d1b5498e1df2cb19f
parente1badb16e59424596573477e5590fa3401cfdf05 (diff)
downloadfile-git-9a458a2a840be5b8cba276c0c71da731fbb7cf46.tar.gz
Document :ext
-rw-r--r--doc/magic.man18
1 files changed, 16 insertions, 2 deletions
diff --git a/doc/magic.man b/doc/magic.man
index 754d7451..d330d4de 100644
--- a/doc/magic.man
+++ b/doc/magic.man
@@ -1,5 +1,5 @@
-.\" $File: magic.man,v 1.101 2022/10/09 18:51:04 christos Exp $
-.Dd October 9, 2022
+.\" $File: magic.man,v 1.102 2023/04/18 16:36:31 christos Exp $
+.Dd Arpil 18, 2023
.Dt MAGIC __FSECTION__
.Os
.\" install as magic.4 on USG, magic.5 on V7, Berkeley and Linux systems.
@@ -542,6 +542,20 @@ An APPLE 4+4 character APPLE creator and type can be specified as:
!:apple CREATYPE
.Ed
.Pp
+A slash-separated list of commonly found filename extensions can be specified
+as:
+.Bd -literal -offset indent
+!:ext ext[/ext...]
+.Ed
+.Pp
+i.e. the literal string
+.Dq !:ext
+followed by a slash-separated list of commonly found extensions; for example
+for JPEG images:
+.Bd -literal -offset indent
+!:ext jpeg/jpg/jpe/jfif
+.Ed
+.Pp
A MIME type is given on a separate line, which must be the next
non-blank or comment line after the magic line that identifies the
file type, and has the following format: