From 970a7be6115261ff2bba5019271878a8ecbe0649 Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Tue, 26 Apr 2016 22:07:50 +0200 Subject: [PATCH] add 5 as minimum number length --- scripts/fingers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fingers.sh b/scripts/fingers.sh index 965753e..1d72379 100755 --- a/scripts/fingers.sh +++ b/scripts/fingers.sh @@ -25,7 +25,7 @@ do lines+="$line\n" done < /dev/stdin -matches=`echo -e $lines | (grep -oniE "((^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*)|([[:digit:]]+)|([0-9a-f]{7,40})" 2> /dev/null) | sort -u` +matches=`echo -e $lines | (grep -oniE "((^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*)|([[:digit:]]{5,})|([0-9a-f]{7,40})" 2> /dev/null) | sort -u` match_count=`echo "$matches" | wc -l` output="$lines"