#!/bin/ksh
# selectfile
PS3="Command?"
select ans in ls pwd date quit
do
  if [ "$ans" = "quit" ];then
    exit
  else
    $ans
  fi
done
