Node:Searching, Next:Access control, Previous:Indexing, Up:Top
The syntax of a search request is:
mingle search keywords [-ts] [-a AND|OR] [-n num]
By default, Mingle performs search in file contents. Use -t
option to
search keywords in file names.
Use a pair of quotation marks "" to enclose all the keywords if multiple keywords are specified. Mingle also supports wildcard matching where you can use a "*" to match one or more characters.
If you use the -s
option, then Mingle will display all the matching
results in a file. By default, Mingle only displays the first result
in each file.
Use the -a
option to specify the logic operations among keywords. The
default logic operation is "OR".
Use the -n
option to specify the number of results to be displayed. By
default, the first 10 results are displayed for each query.
For example,
mingle search "fit*"
will return the first 10 files that contain any word starting with
prefix "fit". For each file, Mingle displays the first line that a
keyword appears.
mingle search "computer bovik" -s -a AND -n 5
will return the first 5 files that contain both the keyword computer
and the keyword bovik
. For each returned file, Mingle displays all the
matched lines.