Skip to content

Instantly share code, notes, and snippets.

@1094
Last active June 28, 2018 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1094/33a3dc86266fa0978424d9be3b23f4f4 to your computer and use it in GitHub Desktop.
Save 1094/33a3dc86266fa0978424d9be3b23f4f4 to your computer and use it in GitHub Desktop.
sdcv search options
#!/bin/bash
set -e
if [[ $1 == "d" ]] ; then
sdcv --color -u 'WordNet' "Oxford Advanced Learner's Dictionary" 'dictd_www.dict.org_devils' $2 | more
elif [[ $1 == "t" ]] ; then
sdcv --color -u 'English Thesaurus' 'Concise Oxford Thesaurus 2nd Ed. (Eng-Eng)' $2 | more
elif [[ $1 == "e" ]] ; then
sdcv --color -u 'The Britannica Concise' $2 | more
elif [[ $1 == "l" ]] ; then
sdcv --color -u 'An Asperger dictionary of everyday expressions' 'The Idiom Connection (En-En)' 'English Dialects 3.0 (En-En)' $2 | more
elif [[ $1 == "-k" ]] ; then
sdcv --color -u 'Korean-English Dic' 'Korean Dic' 'Hanja(Korean Hanzi) Dic' $2 | more
elif [[ $1 == "-ek" ]] ; then
sdcv --color -u 'quick_english-korean' $2
elif [[ $1 == "-ke" ]] ; then
sdcv --color -u 'Kor-Eng Dictionary' $2
elif [[ $1 == "a" ]] ; then
sdcv --color $2 | more
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment