I am working on a project to calculate my overtime at work with a shell script. I have two inputs and want to find if my number is over 800 = 8 hours; if it is bigger, then it has to print out the result to my text file. It has to print out my difference.
if [ $var1 -gt 800 ]; then
`expr $var1-800`
echo Overtime: "" >> $path
and then I'm lost because I don't how to print out the result of my calculation.