Created
January 22, 2020 14:15
-
-
Save lossurdo/f1d90e1fcbed2f65364fd93240c95592 to your computer and use it in GitHub Desktop.
Online dictionary shell script
This file contains hidden or 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/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