-depth option for find(1)

ka at spanky.UUCP ka at spanky.UUCP
Tue Aug 16 03:43:22 AEST 1983


The -depth option always returns true, but if it is present the find
command will skip directories.  Thus "find -depth -print" will only
print the names of files which are not directories.  I think that the
inclusion of this kluge in find was a mistake; the same effect can be
obtained with "find -type d -o -print".  The fact that they didn't
document it gives me some hope that it may eventually go away.
					Kenneth Almquist



More information about the Comp.unix.wizards mailing list