Previous | Next

echo

echo -n "Would you like to play a game? "
read x

x=`echo $x | sed 's/[^-a-z0-9]//g'`

if [ -f /usr/games/$x ] ; then
	tput clear
	exec /usr/games/$x
else
	echo How about a nice game of
	ls /usr/games
	exec cat <<QUOTE
A strange game.
The only winning move is
not to play.
QUOTE
fi
exit 0
echo is a verb

My husband reminded me about the "How about a nice game of..." thing.