diff options
author | Asa Venton <asav1410@gmail.com> | 2020-11-02 10:25:20 +0000 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2020-11-02 10:25:20 +0000 |
commit | a179ea23e5c777bb5fffc1501cc18e1906ed0d49 (patch) | |
tree | b9b4db508769cb070fa571d73618f83b86372d52 | |
parent | 6610c11f5f082ecadc183132bf28eb615be555ff (diff) |
Capitalise first letter of _wod and _etym output, append full stop to _etym output.
-rwxr-xr-x | oedquery.sh | 4 |
1 files 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 } |