| WALK(1) | General Commands Manual | WALK(1) |
walk - walk a path
walk [ -dftxu ] [ -n mind,maxd ] [ -e statfmt ] [ name ... ]
Walk recursively descends any directory arguments, printing the name of each file on a separate line. When no arguments are given, the working directory is assumed. Non-directory arguments are checked for existence, then printed, if so.
Options are:
The statfmt characters are as follows:
The default statfmt is simply, p.
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
/sys/src/cmd/walk.c
ls(1), du(1)
Manipulating ifs is a nuisance.
File names are assumed to not contain newlines.
Correct invocation requires too much thought.
Walk first appeared in 9front (March, 2019).
| jacob |