1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 03:22:08 +02:00
tldr/pages/osx/mdfind.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

326 B

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}}"