From a179ea23e5c777bb5fffc1501cc18e1906ed0d49 Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Mon, 2 Nov 2020 10:25:20 +0000 Subject: Capitalise first letter of _wod and _etym output, append full stop to _etym output. --- oedquery.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oedquery.sh b/oedquery.sh index f21faa1..8a7efd2 100755 --- a/oedquery.sh +++ b/oedquery.sh @@ -96,7 +96,7 @@ _etym() { then echo "No etymology found." else - echo $output + echo ${output^}. fi exit 0 } @@ -154,7 +154,7 @@ _wod() { _curl $lexicoUrl word=$(echo $result | hxnormalize -x | hxselect -i "a.linkword" | grep -o '>.*<' | sed 's/[><]//g') # Add the word of the day to the output. - output="$output $word - " + output="$output ${word^} - " _define } -- cgit v1.2.3