bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:


From: Dale R. Worley
Subject: Re:
Date: Fri, 15 Mar 2019 20:33:46 -0400

I think what you are asking for is something like:

    i=0
    while ...
    do
      find . -mindepth $i -maxdepth $i ...
      i=$(( i+1 ))
    done

That will look at all the files and directories at one depth before
looking at all the files and directories at the next greater depth.  (It
doesn't have any way of testing when i is larger than the depth of the
file tree.)

Dale



reply via email to

[Prev in Thread] Current Thread [Next in Thread]