Skip to content

Instantly share code, notes, and snippets.

@ahue
Created February 14, 2021 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ahue/a080cce7f4abae953a0dcdd06f0246d7 to your computer and use it in GitHub Desktop.
Save ahue/a080cce7f4abae953a0dcdd06f0246d7 to your computer and use it in GitHub Desktop.
A slot-program for retrieve German grocery terms for Rhasspy
#!/usr/bin/env bash
set -e
url="https://web.getbring.com/locale/articles.de-DE.json"
echo "GET ${url}" >&2
curl -X GET \
-H 'Content-Type: application/json' \
"${url}" | \
jq --raw-output 'to_entries[] as $e | "\($e.value)"' | \
grep "^[[:alpha:] ]*$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment