in reply to Re: Bloated File Detector for Unix Boxes in thread Bloated File Detector for Unix Boxes
Hi merlyn,
The -depth flag is just a personal preference -- It traverses the directory's contents before searching the directory itself.
There are ways to fine-tune find, to tell it how many directories deep you want it to go. -maxdepth and -mindepth, iirc.
Re^3: Bloated File Detector for Unix Boxes
by merlyn (Sage) on Mar 15, 2005 at 20:20 UTC
|
I'd understand it as a preference if it in fact did something useful for your application here. But it does nothing. It's like throwing "/o" on the end of a regular expression that contains no variables. It's pointless.
That's why I wondered why you did it. You're doing nothing. It'd be like having an extra variable declared, and initializing it, only to never use it again in your program. You're going to extra work to do something that does nothign.
| [reply] |
|
Ahha, I misunderstood you. You are correct--there is no functional difference between having -depth, and not having it.
Good catch! :)
| [reply] |
|