:foo:definition of foo :bar:definition of barCreate the database (.dict, .index) using dictfmt
dictfmt --utf8 --allchars -s "Foobar Dictionary" -j foobar < foobar.txtMove to the proper folder, and restart the DICT server dictd
mv foobar.dict foobar.index /usr/share/dictd/ /usr/sbin/dictdconfig -—write /etc/init.d/dictd restartYou may have DICT client dict to do such query
dict foo