summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-08 15:52:32 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-08 15:54:42 +0100
commit7cad7b37eb81158b5956dbcf6bdc722b5ffa8f4f (patch)
treeecadad1e8f31a054bd2deeec1104cf9d0f7091b6 /README.md
parente15895fba53c0127c64db978386236f756364e95 (diff)
downloadlr-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 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index d641bf9..3fc6e25 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,7 @@ Over find:
 * can sort
 * compute directory sizes
 * can strip leading `./`
+* can do breadth first search
 
 Over ls:
 * sorts over all files, not per directory
@@ -46,7 +47,7 @@ Over ls:
 
 ## Usage:
 
-	lr [-0|-F|-l [-TA|-TC|-TM]|-S|-f FMT] [-D] [-H|-L] [-1AGQXdhsx] [-U|-o ORD] [-e REGEX]* [-t TEST]* PATH...
+	lr [-0|-F|-l [-TA|-TC|-TM]|-S|-f FMT] [-B|-D] [-H|-L] [-1AGQXdhsx] [-U|-o ORD] [-e REGEX]* [-t TEST]* PATH...
 
 The special path argument `-` makes `lr` read file names from standard
 input, instead of traversing path.
@@ -60,6 +61,7 @@ input, instead of traversing path.
 * `-TM`: with `-l`, output mtime (default).
 * `-S`: BSD stat(1)-inspired output (implies `-Q`).
 * `-f FMT`: custom formatting, see below.
+* `-B`: breadth first traversal.
 * `-D`: depth first traversal. `prune` does not work, but `entries`
   and `total` are computed on the fly.
 * `-H`: only follow symlinks on command line.