mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 20:42:39 +00:00
22 lines
416 B
Plaintext
22 lines
416 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, osx]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# mdfind
|
|
|
|
> List files matching a query.
|
|
> More information: <https://keith.github.io/xcode-man-pages/mdfind.1.html>.
|
|
|
|
- Find a file by its name:
|
|
|
|
`mdfind -name {{file}}`
|
|
|
|
- Find a file by its content:
|
|
|
|
`mdfind "{{query}}"`
|
|
|
|
- Find a file containing a string, in a given directory:
|
|
|
|
`mdfind -onlyin {{directory}} "{{query}}"`
|