echo "Enter Roll number"
read rn
echo "Enter Name"
read name
echo "Enter marks"
read marks
echo "$rn $name $marks">>studentlist.txt
echo "Do you want to view record(Y|y)"
read ch
if [ "$ch" = "Y" -o "$ch" = "y" ]
then
cat studentlist.txt
fi
echo "Enter Roll number"
read rn
echo "Enter Name"
read name
echo "Enter marks"
read marks
echo "$rn $name $marks">>studentlist.txt
echo "Do you want to view record(Y|y)"
read ch
if [ "$ch" = "Y" -o "$ch" = "y" ]
then
cat studentlist.txt
fi
Leave a Reply