From 8127104ccec53af70975dac31831fe4b7b9aefe1 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Mon, 8 Aug 2016 08:06:59 +0100 Subject: [PATCH] osx/locate.md: add exact filename match (#993) * osx/locate.md: add exact filename match * linux/locate.md: add exact filename match --- pages/linux/locate.md | 4 ++++ pages/osx/locate.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pages/linux/locate.md b/pages/linux/locate.md index af4834d44..ff8589a79 100644 --- a/pages/linux/locate.md +++ b/pages/linux/locate.md @@ -6,6 +6,10 @@ `locate {{pattern}}` +- Look for a file by its exact filename (a pattern containing no globbing characters is interpreted as `*pattern*`): + +`locate */{{filename}}` + - Recompute the database. You need to do it if you want to find recently added files: `sudo updatedb` diff --git a/pages/osx/locate.md b/pages/osx/locate.md index ebf217bbd..aaa66a987 100644 --- a/pages/osx/locate.md +++ b/pages/osx/locate.md @@ -6,6 +6,10 @@ `locate {{pattern}}` +- Look for a file by its exact filename (a pattern containing no globbing characters is interpreted as `*pattern*`): + +`locate */{{filename}}` + - Recompute the database. You need to do it if you want to find recently added files: `sudo /usr/libexec/locate.updatedb`