Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google site




Thread: error
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 12-23-2003
props props is offline
Registered User
 

Join Date: Oct 2003
Location: uk
Posts: 15
echo " a.read a file"
echo " b.create a file"
echo " c.add on existing file"
echo " d. exit"
"; do
echo "Enter a,b,c or d: \c"
read answer
echo
case "$answer" in
a)

read answer
cat $answer
;;
b)

read answer
echo
cat> $answer
;;
c)

read answer
echo
cat>> $answer
;;
d)
break
;;
*)

continue
;;
esac
done
echo "Done"