mirror of https://github.com/E-Almqvist/hsf
parent
d9b7a43c38
commit
5031701d81
@ -0,0 +1 @@ |
||||
words.txt |
@ -0,0 +1,12 @@ |
||||
#!/usr/bin/bash |
||||
|
||||
if [ -z $1 ]; then |
||||
echo "Usage: get_words.sh (output file)" |
||||
exit |
||||
fi |
||||
|
||||
api_url=https://random-word-api.herokuapp.com/all |
||||
|
||||
words=$(curl -s $api_url | sed 's/\",\"/\ /g' | sed 's/\"\]//g' | sed 's/\[\"//g') |
||||
|
||||
echo $words > $1 |
Loading…
Reference in new issue