Posted by Jared Anderson on July 28, 1999 at 14:48:07:
In Reply to: Re: Find files posted by hussein on July 28, 1999 at 14:43:58:
I think this is a "multiple instances" question, not an "output string" question.
I think what's being asked is, when files of the same name exist in different subdirectories, which is returned? This depends on whether we're doing a DFS or BFS, correct?
So, which would be preferred in this case? Or is there no preference, as long as it returns the location of A file which matches the query?
(BTW, Jame, if I'm incorrect about what you were asking, I apologize :] )
: : If I have the following directory:
: : ---dir1
: : -------file1.txt
: : ---dir2
: : ---file1.txt
: : What will be the find solution?
: : ../dir1/file1.txt or ../file1.txt
: the solution has to contain the directory name, so the former is acceptable while the latter isnt.
: ---
: hussein