#! /bin/bash WORDSPATH=/usr/local/words cd $WORDSPATH latin=$1 if [ "$latin" = "" ]; then latin=$(gdialog --title "Latin Dictionary" --inputbox "Enter Latin Word to Define:" 50 50 2>&1) fi ./words $latin >/tmp/defined /usr/bin/gdialog --separate-output --title "Latin Words: $1" --textbox /tmp/defined 50 70 2>&1 rm /tmp/defined