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 Setting the statfmt string allows specifying the data
55 It takes a string of characters, each corresponding
56 to some piece of information about the file being
57 traversed, and prints them separated by spaces.
59 The statfmt characters are as follows:
69 name of last user to modify (muid)
72 last access time (atime)
75 last modification time (mtime)
78 final path element (name)
84 qid path.version.type (see
97 server type (kernel device rune)
100 The default statfmt is simply,
103 List files in a directory, sorted by modification time.
106 walk -femp catpics | sort -n | sed 's/^[^ ]+ //'
109 Print the size and path of files (excluding dirs)
110 in the working directory.
117 .B /sys/src/cmd/walk.c
122 Statfmt character `x' displays permissions as an integer.
124 Manipulating ifs is a nuisance.
126 File names are assumed to not contain newlines.
128 Correct invocation requires too much thought.
131 first appeared in 9front (March, 2019).