walk

command module
v0.0.0-...-558d77b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 13 Imported by: 0

README

walk

Walk is a lightweight alternative to the find(1) command, it's main purpose is to walk directories recursively and print the name of each line on a separate line.

Installation

go build -o walk .

Examples

This example is straight from 9fronts man page and is adjusted to work with this version of walk. It will walk the ~/bin/ directory, list its files sorted by the modification date:

walk -f -e mp ~/bin | sort -n | sed -E 's/^[^ ]+ //'

Here is another example where walk will only print files or directories that are of depth 2 or more:

walk -n 2, ~/bin

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL