From dca481f60683bbcd3b2ec3601fbf5a872b7b7327 Mon Sep 17 00:00:00 2001 From: Shivendra Dayal Date: Thu, 22 Oct 2015 00:47:41 +0530 Subject: [PATCH] Adding mdfind for spotlight search on command line --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 82e09e5..e164355 100644 --- a/README.md +++ b/README.md @@ -822,6 +822,11 @@ srm -rf /path/to/complete/destruction find . -type f -name '*.DS_Store' -ls -delete ``` +#### Search for text in file names or file contents (spotlight search) +```bash +mdfind -onlyin . searchstring +``` + ### Locate #### Build Locate Database