0

Suppose I want to get all files that end in .txt in my root / directory. But I want to specifically exclude the search on, say, the /unwanted/ directory.

I know that plocate is the one of the most efficient ways to quickly find a file given a pattern, but I don't know how to sophisticate its search.

  • 1
    The accepted answer in this link is using `find` not `plocate` though, Does this answer your question? [How to exclude a directory in find . command](https://stackoverflow.com/questions/4210042/how-to-exclude-a-directory-in-find-command) – Jetchisel May 31 '22 at 03:42

0 Answers0