Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function addStudent()
- {
- echo "podaj imie studenta"
- read name
- echo "podaj nazwisko studenta"
- read surname
- echo "podaj numer indeksu"
- read indexNumber
- echo "podaj email"
- read mail
- i=0
- touch student$i.txt
- echo $name >> student$i.txt
- echo $surname >> student$i.txt
- echo $indexNumber >> student$i.txt
- echo $mail >> student$i.txt
- echo "Dodano nowego studenta"
- expr `$i + 1`
- }
- function addToGroup()
- {
- echo "wybierz, do ktorej grupy laboratoryjnej chcesz dodac studenta"
- echo "1. Grupa 1."
- echo "2. Grupa 2."
- echo "3. Grupa 3."
- read x
- case $x in
- "1")echo "student zostal dodany do grupy 1"
- cd GRUPA$x
- ;;
- "2")echo "student zostal dodany do grupy 2"
- cd GRUPA$x
- ;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement