Difference between revisions of "Mdfind --help"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<pre> Usage: mdfind [-live] [-count] [-onlyin directory] [-name fileName | -s smartFolderName | query] list the files matching the query query can be an expression or a seque...")
 
Line 1: Line 1:
 +
{{lc}}
 
<pre>
 
<pre>
 
 
Usage: mdfind [-live] [-count] [-onlyin directory] [-name fileName | -s smartFolderName | query]
 
Usage: mdfind [-live] [-count] [-onlyin directory] [-name fileName | -s smartFolderName | query]
 
list the files matching the query
 
list the files matching the query
Line 21: Line 21:
 
</pre>
 
</pre>
  
 
+
== See also ==
 
* {{mdfind}}
 
* {{mdfind}}
 +
* {{locate}}

Revision as of 15:58, 29 May 2022

Usage: mdfind [-live] [-count] [-onlyin directory] [-name fileName | -s smartFolderName | query]
list the files matching the query
query can be an expression or a sequence of words

	-attr <attr>      Fetches the value of the specified attribute
	-count            Query only reports matching items count
	-onlyin <dir>     Search only within given directory
	-live             Query should stay active
	-name <name>      Search on file name only
	-reprint          Reprint results on live update
	-s <name>         Show contents of smart folder <name>
	-0                Use NUL (``\0'') as a path separator, for use with xargs -0.

example:  mdfind image
example:  mdfind -onlyin ~ image
example:  mdfind -name stdlib.h
example:  mdfind "kMDItemAuthor == '*MyFavoriteAuthor*'"
example:  mdfind -live MyFavoriteAuthor

See also

Advertising: