Student system BASH script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Student system BASH script
# 1  
Old 04-23-2015
Error 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 Smilie.

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)
Code:
#!/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!

Last edited by vgersh99; 04-23-2015 at 07:55 PM..
# 2  
Old 04-23-2015
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.
# 3  
Old 04-24-2015
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to block first bash script until second bash script script launches web server/site?

I'm new to utilities like socat and netcat and I'm not clear if they will do what I need. I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes. I'm using Cygwin bash on Windows 10. My... (3 Replies)
Discussion started by: siegfried
3 Replies

2. Homework & Coursework Questions

Student needs grep command help

I am a Student in college struggling with Linux homework This home work was created by my professor not out of the class text book and is frustrating me and the text book is a little frustrating as well need help with 2 5 6 stuck on 2 currently so I know 5 and 6 will be even more... (9 Replies)
Discussion started by: jetoutant
9 Replies

3. Shell Programming and Scripting

Bash script show Kill system output

Hi we are calling kill -9 $pid command from bash script it gives below output, but we need to hide the output. i tried /dev/null but ni luck. is there any alternate way to schive this. ../kill_scr.sh: line 42: 1891 Killed /tmp/anr_rest_mul_wc.sh Soalris 10. ... (2 Replies)
Discussion started by: sachinbutala
2 Replies

4. Shell Programming and Scripting

Bash As System Script

My main machine is set-up so that I configure the network details (IP etc) by command line. However I'm trying to create an bash script to run those commands upon system startup. Problem I have is that the commands require root access and I want it to be fully automatic. Now I figure I need to... (5 Replies)
Discussion started by: jkraw90
5 Replies

5. UNIX for Dummies Questions & Answers

Hello Everyone - Student in Need of Help

Hi everyone. Let me just start off by saying I'm a college student and I love playing around with UNIX. I registered here because I have a UNIX shell scripting class and I am having some issues with my homework. I'm not looking for answers to the problems, just some help to get me on my way.... (1 Reply)
Discussion started by: Hexum311
1 Replies

6. UNIX for Dummies Questions & Answers

student need help!

yes im a student at Sandersville Technical College in Sandersville, Georgia. Im doing a presentation on UNIX can someone help me discribe what UNIX is and how to use it and the different features it has? (6 Replies)
Discussion started by: willnadaze
6 Replies

7. Shell Programming and Scripting

Newbie Student Need Help!

Is there anyone here that can help me with my unix assignment? I've been working on it for 3 days now. It is regarding writing a script. I've got a few questions that I need some answers. Please someone who are willing to help add me to their msn messenger: **************** In one part of... (0 Replies)
Discussion started by: DaSFLiP
0 Replies

8. Linux

Student needs help...

I know taking the easy way out isn't going to help me learn anything, but hopefully it will at least give me some guidence... I have a project and here's what I have to do... A company is currently running a Digital VAX and I have to replace it with a Linux server. There are 19 terminals... (4 Replies)
Discussion started by: MGold4357
4 Replies

9. Programming

novice student needs help

Help! I am very stuck!!! I have to produce a practical implementation of ONC RPC for an assignment and I do not know where to start. I hve done much searching on sun's site but everything is too complicated for someone with my limited knowledge. I only know the very basic unix commands and have... (1 Reply)
Discussion started by: karen79
1 Replies
Login or Register to Ask a Question