walk – walk a path
Print only directories.
Print only non-directories.
Print a file only if it has the temporary flag set.
Print a file only if it has any executable bits set.
Set the inclusive range of depths for filtering in results.
Specify the output format.
Each character in
The statfmt characters are as follows:
owner name (uid)
group name (gid)
name of last user to modify (muid)
last access time (atime)
last modification time (mtime)
final path element (name)
qid path.version.type (see
size in bytes
server type (kernel device rune)
The default statfmt is simply,
List files in a directory, sorted by modification time.
walk -femp catpics | sort -n | sed 's/^[^ ]+ //'
Print the size and path of files (excluding dirs) in the working directory.
walk -fn1 -esp
Statfmt character ‘x’ displays permissions as an integer.
Manipulating ifs is a nuisance.
File names are assumed to not contain newlines.
Correct invocation requires too much thought.