Timeline for Passing multiple directories to the -prune option in find
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 14, 2013 at 11:17 | history | edited | terdon♦ | CC BY-SA 3.0 | SInce the apology has been removed from the question, this is no longer relevant. |
| Apr 29, 2013 at 17:48 | comment | added | chandra | My script above works and does what I want it to. I simply wanted to know whether there was a neater way than \( -path "dir1" -o -path "dir2" ... -o -path "dirN" \) -prune to exclude certain directories from the recursive search that find does. I am not searching for anything within files but rather deleting certain files and avoiding certain directories in my search path. I do not understand what your script is trying to do either. So, it appears we have a miscommunication. Sorry. Let us leave it at that. | |
| Apr 29, 2013 at 16:27 | comment | added | Hauke Laging | @chandra I neither see how your question is clearer nor do I understand what could be a problem with my solution (except for the trivial replecement of -name by path). | |
| Apr 29, 2013 at 14:30 | comment | added | chandra | I am so sorry for not being explicit. Kindly see revised question which I hope is clearer. | |
| Apr 28, 2013 at 10:40 | history | answered | Hauke Laging | CC BY-SA 3.0 |