definition/thesaurus

Submitted scripts and programs
Forum rules
Your own work only.
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

definition/thesaurus

Unread post by machinebacon » Thu Dec 31, 2015 4:25 am

depends on dict and dict-wn and/or moby-thesaurus

Code: Select all

#!/bin/bash
usage() {
echo 'definition: 	looks up a definition for word'
echo 'usage:		definition <term>'
exit 1
}
[[ -z $1 ]] && usage
dict -d wn $1

Code: Select all

#!/bin/bash
usage() {
echo 'definition: 	looks up thesaurus for word'
echo 'usage:		thesaurus <term>'
exit 1
}
[[ -z $1 ]] && usage
dict -d moby-thesaurus $1
..gnutella..

User avatar
elixir
Weight Watcher
Posts: 357
Joined: Fri Feb 21, 2014 8:25 am

Re: definition/thesaurus

Unread post by elixir » Mon Feb 29, 2016 7:57 am

I was just poking around the forums and came across this. Great share, it will be very useful for me.
Out of the corner of your eye you spot him... Shia LaBeouf.

https://www.youtube.com/watch?v=o0u4M6vppCI

Post Reply