Re: The quickest way to not to descend into sub-directories once a file is found?

2019-09-27 Thread Peng Yu
But wouldn't a scripting language be less efficient than C implementation? I am not sure the time saved by traverse fewer files using pruning will be greater than the time wasted in using a scripting language. I'd like to know this beforehand before I create a custom implementation in a scripting

Re: The quickest way to not to descend into sub-directories once a file is found?

2019-09-27 Thread Stephane Chazelas
2019-09-26 21:57:09 -0500, Peng Yu: [...] > I'd like to find files named `file.txt` recursively. But the directory > structure has a property that if any directory has a file `file.txt`, > any of its subdirectories will not have file.txt anymore. > > Therefore, the quickest way to `find` is to sto