1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 04:17:55 +01:00
tldr/pages/osx/mdfind.md

16 lines
247 B
Markdown
Raw Normal View History

2015-10-26 12:55:32 +01:00
# mdfind
2015-12-07 00:04:00 +01:00
> List files matching a given query
2015-10-26 12:55:32 +01:00
2016-01-01 04:36:21 +01:00
- Find a file by its name
2015-10-26 12:55:32 +01:00
2015-12-07 00:01:50 +01:00
`mdfind -name {{file}}`
2015-10-26 12:55:32 +01:00
2016-01-01 04:36:21 +01:00
- Find a file by its content
2015-10-26 12:55:32 +01:00
2015-12-07 00:01:50 +01:00
`mdfind {{query}}`
2015-10-26 12:55:32 +01:00
2015-12-07 00:01:50 +01:00
- Find a file containing a string, in a given directory
2015-10-26 12:55:32 +01:00
2015-12-07 00:01:50 +01:00
`mdfind -onlyin {{directory}} {{query}}`