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'


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


# define linux
n : an open-source version of the UNIX operating system

 Posted by at 11:04 am

Sorry, the comment form is closed at this time.