-depth option for find(1)

jhh at ihldt.UUCP jhh at ihldt.UUCP
Wed Aug 17 00:02:00 AEST 1983


The -depth option for find does not cause it to skip directories,
as some earlier articles stated, it causes it to do a depth
first search of the tree, i.e. the output looks like

	./foo
	./bar
	.

Presumably, this can be used to change permissions on a directory
after all the files and subdirectories have been created.  This
allows a mode 555 directory to be properly copied:

-r--r--r--	./foo
-r--r--r--	./bar
dr-xr-xr-x	.

			John Haller



More information about the Comp.unix.wizards mailing list