Skip to content

Instantly share code, notes, and snippets.

@davosian
Forked from ahue/groceries_bring
Created July 19, 2021 14:57
Show Gist options
  • Save davosian/b790a05acfc40d1b4e3cddc4cce4b94a to your computer and use it in GitHub Desktop.
Save davosian/b790a05acfc40d1b4e3cddc4cce4b94a to your computer and use it in GitHub Desktop.

Revisions

  1. @ahue ahue created this gist Feb 14, 2021.
    11 changes: 11 additions & 0 deletions groceries_bring
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/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:] ]*$"