File: mdfind.1

package info (click to toggle)
gworkspace 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,832 kB
  • sloc: objc: 69,382; sh: 488; makefile: 39
file content (99 lines) | stat: -rw-r--r-- 2,193 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.TH mdfind 1 "June 19, 2014"
.SH NAME
mdfind \- search files matching a query in GWMetadata's database 
.SH SYNOPSIS
.B mdfind
[options]
.I query
.SH DESCRIPTION
This manual page documents briefly the
.B mdfind
command.
.PP
.B mdfind
is a tool to search for files matching a given query.  It is part of
GWMetadata, a desktop search and indexing system for GNUstep.
.SH OPTIONS
.TP
.BI -onlyin " 'directory'"
limits the search to \(lqdirectory\(rq
.TP
.B -s
reports also the score for each found path
.TP
.B -c
reports only the count of each found path
.TP
.BI -a " [attribute]"
if \(lqattribute\(rq is supplied, prints the attribute description,
otherwise prints the attributes list
.TP
.B -h
prints a help message and exits
.PP
The
.I query
has the format: \fBattribute operator value\fP, where
\(lqattribute\(rq is one of the attributes used by the
\fBmdextractor\fR(1) tool when indexing (type
.B mdfind -a
for the attributes list), and \(lqoperator\(rq is one of the
following:
.RS
.RS
.TP
==
equal
.TP
!=
not equal
.TP
<
less than (only for numeric values and dates)
.TP
<=
less than or equal (only for numeric values and dates)
.TP
>
greater than (only for numeric values and dates)
.TP
>=
greather than or equal (only for numeric values and dates)
.RE
.RE
.
.
.PP
Value comparison modifiers for string values:
.br
.RS
Appending the \(oqc\(cq character to the search value ("value"c) makes the
query case insensitive.
.br
The \(oq*\(cq wildcard can be used to match substrings anywhere in the
search value.
.RE
.PP
Combining queries:
.br
.RS
Queries can be combined using the \(oq&&\(cq for
.IR AND ,
\(oq||\(cq for
.I OR
and parentheses to define nesting criteria.

.SH SEE ALSO
\fBMDFinder\fR(1), \fBGWorkspace\fR(1), \fBGNUstep\fR(7)
.SH AUTHORS
.B mdfind
and GWMetadata were written by Enrico Sersale.
.P
This manual page was added by Yavor Doganov <yavor@gnu.org> for the
Debian distribution because the original program does not have one.
.SH COPYRIGHT
Copyright \(co 2014 Free Software Foundation, Inc.
.P
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.