From 4449011ecec3be38b8892d5dc7258d3d03c5a8df Mon Sep 17 00:00:00 2001 From: Lukas B Date: Mon, 26 Oct 2015 12:55:32 +0100 Subject: [PATCH 1/3] Add mdfind --- pages/osx/mdfind.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/osx/mdfind.md diff --git a/pages/osx/mdfind.md b/pages/osx/mdfind.md new file mode 100644 index 000000000..1dbce2439 --- /dev/null +++ b/pages/osx/mdfind.md @@ -0,0 +1,15 @@ +# mdfind + +> List files matching a query + +- Find a file named **"Inception"** + +`mdfind -name inception` + +- Find a file containing **"football"** + +`mdfind football` + +- Find a file containing **"football"**, in the directory **"~/Documents"** + +`mdfind -onlyin ~/Documents football` From 076f37151e7804a54465176d00b171df74196506 Mon Sep 17 00:00:00 2001 From: Lukas B Date: Mon, 7 Dec 2015 00:01:50 +0100 Subject: [PATCH 2/3] Update mdfind.md --- pages/osx/mdfind.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/osx/mdfind.md b/pages/osx/mdfind.md index 1dbce2439..8acb029e5 100644 --- a/pages/osx/mdfind.md +++ b/pages/osx/mdfind.md @@ -2,14 +2,14 @@ > List files matching a query -- Find a file named **"Inception"** +- Find a file by it's name -`mdfind -name inception` +`mdfind -name {{file}}` -- Find a file containing **"football"** +- Find a file by it's content -`mdfind football` +`mdfind {{query}}` -- Find a file containing **"football"**, in the directory **"~/Documents"** +- Find a file containing a string, in a given directory -`mdfind -onlyin ~/Documents football` +`mdfind -onlyin {{directory}} {{query}}` From 7aef4819f867fdb52aaad0dcc712efebe7e0a4ff Mon Sep 17 00:00:00 2001 From: Lukas B Date: Mon, 7 Dec 2015 00:04:00 +0100 Subject: [PATCH 3/3] Update mdfind.md --- pages/osx/mdfind.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/osx/mdfind.md b/pages/osx/mdfind.md index 8acb029e5..a2c104008 100644 --- a/pages/osx/mdfind.md +++ b/pages/osx/mdfind.md @@ -1,6 +1,6 @@ # mdfind -> List files matching a query +> List files matching a given query - Find a file by it's name