Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Bloated File Detector for Unix Boxes

by bpoag (Monk)
on Mar 15, 2005 at 15:51 UTC ( [id://439662]=note: print w/replies, xml ) Need Help??


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.
  • Comment on Re^2: Bloated File Detector for Unix Boxes

Replies are listed 'Best First'.
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.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      Ahha, I misunderstood you. You are correct--there is no functional difference between having -depth, and not having it. Good catch! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://439662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2024-04-23 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found