19 recursively descends any directory arguments,
20 printing the name of each file on a separate line.
21 When no arguments are given, the working directory
23 Non-directory arguments are checked for existence,
29 Print only directories.
32 Print only non-directories.
35 Print a file only if it has the temporary flag set.
38 Print a file only if it has any executable bits set.
44 Set the inclusive range of depths for filtering in results.
52 with no comma is equivalent to
56 Setting the statfmt string allows specifying the data
59 It takes a string of characters, each corresponding
60 to some piece of information about the file being
61 traversed, and prints them separated by spaces.
63 The statfmt characters are as follows:
73 name of last user to modify (muid)
76 last access time (atime)
79 last modification time (mtime)
82 final path element (name)
88 qid path.version.type (see
101 server type (kernel device rune)
104 The default statfmt is simply,
107 List files in a directory, sorted by modification time.
110 walk -femp catpics | sort -n | sed 's/^[^ ]+ //'
113 Print the size and path of files (excluding dirs)
114 in the working directory.
121 .B /sys/src/cmd/walk.c
126 Statfmt character `x' displays permissions as an integer.
128 Manipulating ifs is a nuisance.
130 File names are assumed to not contain newlines.
132 Correct invocation requires too much thought.
135 first appeared in 9front (March, 2019).