all repos — dotfiles @ 9b88bb3bc4bed2f2a28bf5f0490158f7dd1a0e9e

linux dotfiles

bin/scripts/define (view raw)

 1
 2
 3
 4
 5
 6
#!/usr/bin/bash
# usage $./define word
# will return the meaning of the word in a json format

URL="https://googledictionaryapi.eu-gb.mybluemix.net/?define="$1"&lang=en"
curl -s $URL | jq '.[]|del(.pronunciation)'