From edb2abe085f47b35c9379ee6deccf9223cb95d21 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 27 Jul 2017 14:09:10 +0200 Subject: lr: add action "color " to override colors --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index d423dcd..b9d3d1a 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ Default: `n`. | | prune -- do not traverse into subdirectories | print -- always true value + | color -- always true value, override 256-color ::= atime | ctime | mtime @@ -292,6 +293,12 @@ List directory total sizes, indented: 0 .git/refs/tags ``` +List all files, but print them in red if they match "havoc": + +``` +% lr -G -t 'name =~ "havoc" && color 160 || print' +``` + ## Installation Use `make all` to build, `make install` to install relative to `PREFIX` -- cgit 1.4.1