bug-findutils
[Top][All Lists]
Advanced

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

find starting from leaf rather than root


From: Peng Yu
Subject: find starting from leaf rather than root
Date: Sun, 13 Jun 2010 09:24:07 -0500

I know that 'find' start from a dir then recursively check subdirectories.

But I have an application, in which I need to check the start
directory first then check the parent directory (I want to control
whether to go to sibling directories) then the grandparent directory
(I want to control whether to go to sibling directories of the parent
directory).

More general, thinking of the filesystem as a tree, I want to traverse
it starting from a non-root node and need some flexible rules to rule
out certain branches. I'm wondering if such a tool is available
somewhere?

-- 
Regards,
Peng



reply via email to

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