From: Paul Hänsch Date: Fri, 22 Sep 2023 13:27:40 +0000 (+0200) Subject: case insensitive search X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=368ca204df61a5e24c71d4697746603e2dcc94d5;p=shellwiki case insensitive search --- diff --git a/handlers/40_search.sh b/handlers/40_search.sh index c9bc627..ca068ab 100644 --- a/handlers/40_search.sh +++ b/handlers/40_search.sh @@ -13,7 +13,7 @@ words="$( GET q | awk ' FS = "([] \t\n\r!\"#'\''()*+,./:;<=>?\\^_`{|}~[-]|%[0-9A-Fa-f]{2}|'"$(printf '\342\200[\200-\277]|\342\201[\201-\257]')"')+"; fi } - { for (n = 1; n <= NF; n++) printf "%s ", $n; } + { for (n = 1; n <= NF; n++) printf "%s ", tolower($n); } ')" for w in ${words}; do