From 3d4181294508d4493355afd06d4f56ea47bba9d9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 12 Feb 2018 10:53:02 +0100 Subject: [PATCH] contrib: add -h option to NM-log Pass "-h" to highlight individual words. "-h" stands for "highlight". $ NM-log -h wlan0 j --- contrib/scripts/NM-log | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/contrib/scripts/NM-log b/contrib/scripts/NM-log index 8ba2a36ed0..49e187bae6 100755 --- a/contrib/scripts/NM-log +++ b/contrib/scripts/NM-log @@ -38,15 +38,32 @@ NM-colorize() { GREP_COLOR='01;31' grep -a --color=always '^\|^\(.* \)\?<\(warn> \|error>\) \[[0-9.]*\]' | \ GREP_COLOR='01;33' grep -a --color=always '^\|^\(.* \)\? \[[0-9.]*\]\( .*\.*$\)\?' | \ GREP_COLOR='01;37' grep -a --color=always '^\|\