Student system BASH script

Hi guys,

i'm beginner with Unix, I tried my best, but I Really don't know how to finish it :D.

here's my problem : I have to do something like Student system - student's name | subjects | mark |credits.

after starting script it will ask you for Student's name, then which subject, then the mark will appear.

I already have this, but its not workin.(EXAMPLE)

#!/bin/bash
echo "Student's name"
echo -n "Input student's name: "
read name
echo
case $name in
Franta Hru�ka|Matematika) echo "C" ;;
Franta Hru�ka|Programovan�) echo "D" ;;
Franta Hru�ka|Tvorba Webu) echo "A" ;;
Franta Hru�ka|Ekonomie) echo "-" ;;
esac

Thank guys!

Is this a homework assignment? Homework assignments must be submitted in the homework & coursework questions forum and must include a completely filled out Template for Homework & Coursework Questions.

And, a vague spec like "something like Student system" doesn't really help. Please post - in the correct forum - hard facts: (mandatory) inputs, desired results, file structures, etc.