GNU bug report logs - #55641
Using colours with grep

Previous Next

Package: grep;

Reported by: goncholden <goncholden <at> protonmail.com>

Date: Wed, 25 May 2022 20:49:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: "bug-grep <at> gnu.org" <bug-grep <at> gnu.org>
Subject: Using colours with grep
Date: Wed, 25 May 2022 20:48:49 +0000
Have been using grep to colour the filename printed by tail using grep, by setting GREP_COLOR.  However the setting does not work with GREP_COLORS.

Additionally, I could not set colour values with tput commands.

tail -v -n "$tm" $file | GREP_COLOR='01;32' $_GREP -e ^ -e '^==> .* <==$'

awk and sed work better with colour settings, including settings with tput.

Cholden





This bug report was last modified 2 years and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.