diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-11-08 15:52:32 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-11-08 15:54:42 +0100 |
commit | 7cad7b37eb81158b5956dbcf6bdc722b5ffa8f4f (patch) | |
tree | ecadad1e8f31a054bd2deeec1104cf9d0f7091b6 /lr.1 | |
parent | e15895fba53c0127c64db978386236f756364e95 (diff) | |
download | lr-7cad7b37eb81158b5956dbcf6bdc722b5ffa8f4f.tar.gz lr-7cad7b37eb81158b5956dbcf6bdc722b5ffa8f4f.tar.xz lr-7cad7b37eb81158b5956dbcf6bdc722b5ffa8f4f.zip |
new option -B for breadth first search
We use two trees and add the newly found files to the other one, then loop until no more files are found. prune, -t, -L and -x work, depth needs a slight hack; loop detection and -U doesn't work.
Diffstat (limited to 'lr.1')
-rw-r--r-- | lr.1 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lr.1 b/lr.1 index 63b8c34..8c13121 100644 --- a/lr.1 +++ b/lr.1 @@ -8,7 +8,7 @@ .Nm .Op Fl 0 | Fl F | Fl l Oo Fl TA | Fl TC | Fl TM Oc | Fl S | Fl f Ar fmt .br -.Op Fl D +.Op Fl B | Fl D .Op Fl H | Fl L .Op Fl 1AGQXdhsx .Op Fl U | Fl o Ar ord @@ -81,6 +81,11 @@ BSD .It Fl f Ar fmt Custom formatting, see .Sx FORMATTING . +.It Fl B +Use breadth first traversal. +For each depth of the directory tree, +files are sorted and printed, +then the next depth is looked at. .It Fl D Use depth first traversal. .Ic prune |