1 .TH DESCEND 1 "31 March 1992"
3 descend \- walk directory tree and execute a command at each node
16 walks down a directory tree and executes a command at each node. It
17 is not as versatile as
19 but it has a simpler syntax. If no
23 starts at the current one.
28 can be told to skip the special directories associated with RCS,
29 CVS, and SCCS. This makes
31 especially handy for use with these packages. It can be used with
32 other commands too, of course.
35 is a poor man's way to make any command recursive. Note:
37 does not follow symbolic links to directories unless they are
38 specified on the command line.
43 Descend into directories that begin with '.'.
47 Ignore errors during descent. Normally,
49 quits when an error occurs.
53 Suppress the message `In directory
55 that is normally printed during the descent.
59 Don't descend into the special directories
74 Cheap substitute for `ls -R'.
76 .B "descend -f 'rm *' tree"
77 Strip `tree' of its leaves. This command descends the `tree'
78 directory, removing all regular files. Since
80 does not remove directories, this command leaves the directory
81 structure of `tree' intact, but denuded. The
83 option is required to keep
85 from quitting. You could use `rm \-f' instead.
87 .B "descend -r 'co RCS/*'" /project/src/
88 Check out every RCS file under the directory
91 .B "descend -r 'cvs diff'"
92 Perform CVS `diff' operation on every directory below (and including)
95 Returns 1 if errors occur (and the
97 option is not used). Otherwise returns 0.
106 Software Technology Group
108 John Fluke Mfg. Co., Inc.
110 Shell metacharacters in
112 may have bizarre effects. In particular, compound commands
113 (containing ';', '[', and ']' characters) will not work. It is best
114 to enclose complicated commands in single quotes \(aa\ \(aa.