Skip to content

Instantly share code, notes, and snippets.

@lossurdo
Created January 22, 2020 14:15
Show Gist options
  • Save lossurdo/f1d90e1fcbed2f65364fd93240c95592 to your computer and use it in GitHub Desktop.
Save lossurdo/f1d90e1fcbed2f65364fd93240c95592 to your computer and use it in GitHub Desktop.
Online dictionary shell script
#!/bin/sh
# Documentation:
# https://tools.ietf.org/html/rfc2229
if [ -z "$1" ]
then
echo "No word supplied! \nCommand: 'dict.sh <word>' eg. 'dict.sh linux'"
exit 1
fi
curl dict://dict.org/d:$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment