The program traverse
traverse is a multithreaded program similar to walk.
Given more than one directory name on the
command line, traverse
creates separate
threads to walk each directory, adds each filename
to a list and later prints the filenames
once all the directories have been traversed and read.
$ traverse x/a x/b
x/a/file1
x/a/file2
x/a/file3
x/a/dir/file1
x/a/dir/file2
x/a/dir/file3
x/b/file1
x/b/file2
x/b/file3
traverse is used in Session 10.
Next topic:
Single-process debugging
Previous topic:
The program walk
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005