From 9be8426dfca6a27311b5684be45fc24ef52a84cc Mon Sep 17 00:00:00 2001 From: Philipp Andreas Paul Date: Sat, 10 Dec 2022 06:14:21 +0100 Subject: [PATCH] #34: remove trailing ':' (#39) --- spot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spot.sh b/spot.sh index 25f0cd0..4036b8e 100755 --- a/spot.sh +++ b/spot.sh @@ -161,7 +161,7 @@ fi # run search eval "find $dir $findopt -type f $exclude -print0" \ | GREP_COLOR="1;33;40" xargs -0 grep "${grepopt[@]}" -e "$@" \ - | sed "s/^\([^:]*:\)\(.*\)/ \\ + | sed "s/^\([^:]*\):\(.*\)/ \\ $cyan\1$reset \\ \2 /" \ | awk -v linenums=$linenums -v reset="$(tput sgr0)" -v colors=$colors -v mline=$mline '{