Files
shell-scripting-tutorial/Logical-operators.sh
2018-05-17 23:05:38 +05:30

22 lines
540 B
Bash

#!/bin/bash
#Purpose: Logical Operators/Boolean Operators. Student Marks Validation.
#Version:1.0
#Created Date: Sat May 12 21:21:03 IST 2018
#Modified Date:
#Author: Ankam Ravi Kumar
# START #
echo -e "Enter Your Maths Subject Marks: \c"
read -r m
echo -e "Enter Your Physics Subject Marks: \c"
read -r p
echo -e "Enter Your Chemistry Subject Marks: \c"
read -r c
if test $m -ge 35 -a $p -ge 35 -a $c -ge 35
then
echo "Congratulations, You have passed in all subjects"
else
echo "Sorry You not upto mark in one of the subject"
fi
# END #