Timeline for Passing multiple directories to the -prune option in find
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 5, 2022 at 6:37 | comment | added | roneo.org | To exclude every node_modules folders, even in sub-folders, I had to use -o -path '*/node_modules*' -prune instead | |
| Jan 13, 2022 at 7:17 | comment | added | Kusalananda♦ | In the specific example that you show at the end, it would probably be easier to just use -xdev to keep find from wandering into other mounted filesystems. | |
| Jan 13, 2022 at 6:49 | history | edited | JamesThomasMoon | CC BY-SA 4.0 | opening sentence |
| Jan 11, 2022 at 23:46 | history | edited | JamesThomasMoon | CC BY-SA 4.0 | improve contrived example |
| Mar 7, 2017 at 17:50 | history | edited | JamesThomasMoon | CC BY-SA 3.0 | last sentence didn't make sense |
| Aug 18, 2016 at 0:32 | history | answered | JamesThomasMoon | CC BY-SA 3.0 |