diff options
author | Christos Zoulas <christos@zoulas.com> | 2014-03-07 23:11:16 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2014-03-07 23:11:16 +0000 |
commit | 499b946f77c003d94ad57a436f029a36e410b15e (patch) | |
tree | e7ac4958a1f8a19740acafb26b31a14a6f22e7a5 /doc | |
parent | 51260357f3e45eacd71edb08e31fd596458e4d07 (diff) | |
download | file-git-499b946f77c003d94ad57a436f029a36e410b15e.tar.gz |
clarify the syntax for string searches (Christoph Biedl)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/magic.man | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/magic.man b/doc/magic.man index bb39c91e..2cf6fdd2 100644 --- a/doc/magic.man +++ b/doc/magic.man @@ -1,4 +1,4 @@ -.\" $File: magic.man,v 1.78 2013/01/09 13:04:30 christos Exp $ +.\" $File: magic.man,v 1.79 2013/04/22 15:30:10 christos Exp $ .Dd April 22, 2013 .Dt MAGIC __FSECTION__ .Os @@ -249,15 +249,15 @@ not beginning and end of file. .It Dv search A literal string search starting at the given offset. The same modifier flags can be used as for string patterns. -The modifier flags (if any) must be followed by -.Dv /number -the range, that is, the number of positions at which the match will be +The search expression must contain the range in the form +.Dv /number, +that is the number of positions at which the match will be attempted, starting from the start offset. This is suitable for searching larger binary expressions with variable offsets, using .Dv \e escapes for special characters. -The offset works as for regex. +The order of modifier and number is not relevant. .It Dv default This is intended to be used with the test .Em x |