jetdumot/test.sh

10 lines
325 B
Bash
Executable File

random1=$(shuf -i 0-102689 -n 1)
random2=$(shuf -i 0-17873 -n 1)
random3=$(shuf -i 0-39792 -n 1)
noun=$(jq .[$random1] noun.json | jq .word | cut -d '"' -f 2)
verb=$(jq .[$random2] verb.json | jq .word | cut -d '"' -f 2)
adj=$(jq .[$random2] adj.json | jq .word | cut -d '"' -f 2)
echo $verb" des "${noun%s}"s "${adj%s}"s"