Code for Prepare the marksheet of the student in Unix / Linux / Ubuntu
echo "Enter student name"
read name
echo "Enter semester"
read sem
echo "Enter subject 1 name "
read sub1
echo "Enter mark"
read mark1
echo "Enter subject 2 name "
read sub2
echo "Enter mark"
read mark2
echo "Enter subject 3 name "
read sub3
echo "Enter mark"
read mark3
echo "Enter subject 4 name "
read sub4
echo "Enter mark"
read mark4
echo "Enter subject 5 name "
read sub5
echo "Enter mark"
read mark5
echo "Enter subject 6 name "
read sub6
echo "Enter mark"
read mark6
echo "Name : $name"
echo "semester : $sem"
echo "Subject Marks"
echo "$sub1 $mark1"
echo "$sub2 $mark2"
echo "$sub3 $mark3"
echo "$sub4 $mark4"
echo "$sub5 $mark5"
echo "$sub6 $mark6"
echo "Total Marks : `expr + $mark1 + $mark2 + $mark3 + $mark4 + $mark5 + $mark6`"
-------------------------------------------------------------------
output
-------------------------------------------------------------------
Enter student name
abc
Enter semester
ii
Enter subject 1 name
c
Enter mark
23
Enter subject 2 name
c++
Enter mark
23
Enter subject 3 name
foc
Enter mark
45
Enter subject 4 name
cobol
Enter mark
45
Enter subject 5 name
bma
Enter mark
43
Enter subject 6 name
state
Enter mark
43
Total Marks : 222