Re: find starting from leaf rather than root

2010-06-14 Thread Eric Blake
On 06/13/2010 09:17 AM, James Youngman wrote: > On Sun, Jun 13, 2010 at 3:24 PM, Peng Yu wrote: >> 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 wa

Re: find starting from leaf rather than root

2010-06-13 Thread James Youngman
On Sun, Jun 13, 2010 at 3:24 PM, Peng Yu wrote: > 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

find starting from leaf rather than root

2010-06-13 Thread Peng Yu
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 whethe