Donnerstag, 8. Dezember 2011

Dictionary in a Box

Hi girls and guys,

This time just a short trick. If you need a good dictionary
you can use dict based for the shell too. I installed
ding via zypper

zypper in ding

and added this function to my .bashrc in $HOME

translate()
{
clear
tr \| \n < /usr/share/dict/de-en.txt |grep --color $1
}


this way you can type

translate hello

in a bash and get a colorized output of the translation. Hope you find this a useful hint.

You may also use one of these dictionaries.

Until next time than.

Keine Kommentare:

Kommentar veröffentlichen

Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.