Created
July 6, 2022 17:20
-
-
Save R4wm/43205cac1e770c54c14ac618303be65b to your computer and use it in GitHub Desktop.
webster command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
key=$(cat ~/.webster/config.json | jq .key | sed s/\"//g) | |
curl -s "https://www.dictionaryapi.com/api/v3/references/collegiate/json/$1?key=$key" | jq .[0].shortdef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment