Oct 312011
 

Just a quick script for looking up the definition of a word via the commandline…

touch define
vim define

add the following code then :wq to save

#! /bin/bash
# display definition of a word
#
curl --stderr /dev/null dict://dict.org/d:$1 | sed '/^[.,0-9].*$/d'

then,

chmod +x define
mv define /usr/bin/define

Usage

# define linux
Linux
     n : an open-source version of the UNIX operating system
Share This!
 Posted by at 11:04 am

Sorry, the comment form is closed at this time.