any idea how to make this to work . User inputs a filename and cat command reads the filename
:
# simple cat commands
echo "\n COMMAND MENU\n"
echo " a.read a file"
echo " b. exit"
echo "Enter a, or b: \c"
read answer
echo
case "$answer" in
a)
cat $answer
;;
b)
kill
;;
*)
echo "There is no selection: $answer"
;;
esac
echo
:
# simple cat commands
echo "\n COMMAND MENU\n"
echo " a.read a file"
echo " b. exit"
echo "Enter a, or b: \c"
read answer
echo
case "$answer" in
a)
cat $answer
;;
b)
kill
;;
*)
echo "There is no selection: $answer"
;;
esac
echo