From: Paul Hänsch Date: Mon, 9 Dec 2019 21:25:01 +0000 (+0100) Subject: improved group detection by optimising for numbered files X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=dc87e96cca26d95b5b1befa8ba8283ae98e5ecf2;p=serve0 improved group detection by optimising for numbered files --- diff --git a/list.sh b/list.sh index cdb99e0..b941aa7 100644 --- a/list.sh +++ b/list.sh @@ -93,7 +93,8 @@ groupmatch(){ else long="$2" short="$1" fi - com="$(expr substr "$long" 1 $((${#long} * 3 / 4)))" + # com="$(expr substr "$long" 1 $((${#long} * 3 / 4)))" + com="$(expr substr "$long" 1 $((${#long} - 3)))" cut="${short#$com}" if [ ${#cut} -lt ${#short} ]; then return 0