From 60704c03fa983e6f4c6e6adce64233933da4089c Mon Sep 17 00:00:00 2001 From: Esa Jokinen Date: Wed, 7 Aug 2024 16:33:00 +0300 Subject: [PATCH] product-pricelimiter.sh change grep color --- bin/product-pricelimiter.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/product-pricelimiter.sh b/bin/product-pricelimiter.sh index a98faf8..2c54bcc 100755 --- a/bin/product-pricelimiter.sh +++ b/bin/product-pricelimiter.sh @@ -115,7 +115,8 @@ if [ "$prices" == "" ]; then exit 1 else echo -e "\033[0;32mPrices (float numbers) in \"${selector}\":\033[0m" >&2 - echo "$prices" | cat -n | grep --color=always -e "^" -e "\s$n\s.*" >&2 + export GREP_COLORS='ms=00;32' + echo "$prices" | cat -n | grep --color=always -e "^" -e "\s${n}\s.*" >&2 fi count=$(echo "$prices" | wc -l)