#!/bin/bash # # Dictionary wrapper. # # Parameters BASENAME="`basename $0`" DICT="/usr/bin/dict" # Dispatch if [ -x "$DICT" ]; then $DICT "$@" else if which surfraw &> /dev/null; then surfraw wiktionary "$@" else echo "error: no suitable dictionary found in the system" exit 1 fi fi