From 7cad7b37eb81158b5956dbcf6bdc722b5ffa8f4f Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 8 Nov 2017 15:52:32 +0100 Subject: 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. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'README.md') 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. -- cgit 1.4.1