Skip to content

Commit

Permalink
product-pricelimiter.sh change grep color
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Aug 7, 2024
1 parent a069668 commit 60704c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/product-pricelimiter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60704c0

Please sign in to comment.