Adding mdfind for spotlight search on command line

This commit is contained in:
Shivendra Dayal 2015-10-22 00:47:41 +05:30
parent 0afa41eed1
commit dca481f606

View File

@ -822,6 +822,11 @@ srm -rf /path/to/complete/destruction
find . -type f -name '*.DS_Store' -ls -delete find . -type f -name '*.DS_Store' -ls -delete
``` ```
#### Search for text in file names or file contents (spotlight search)
```bash
mdfind -onlyin . searchstring
```
### Locate ### Locate
#### Build Locate Database #### Build Locate Database